Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1inn 160 #3

Open
wants to merge 16 commits into
base: triton
Choose a base branch
from
Open

1inn 160 #3

wants to merge 16 commits into from

Conversation

Juanito87
Copy link

No description provided.

strohel and others added 15 commits February 24, 2023 22:44
The maintenance badge leads to https://gist.github.com/cheerfulstoic/d107229326a01ff0f333a1d3476e068d

_Actively Maintained_ is described there as
> The maintainer(s) of this project are responding to issues and integrating code contributions

...which should set the correct expectations for people stumbling upon. Not explicitly said, but I count that also means we'll be doing (minor, mostly) releases.
https://doc.rust-lang.org/std/fs/fn.read_dir.html already returns an Iterator (`ReadDir`s IntoIter implementation returns `self`)
The recommended netlink buffer size is based on the system's page size,
which means that the current size is far too small for systems with 16k
or 64k pages, such as Asahi Linux or RHEL's kernel-64k for ARM64. On
these systems, the server fails to start with errors like this:

Error: Decode error occurred: invalid netlink buffer: length field says 1444 the buffer is 1260 bytes long

Instead, follow the kernel's own netlink docs to compute the buffer
size. The approach here matches the approach merged into Chromium
recently:

https://chromium-review.googlesource.com/c/chromium/src/+/4312885
…oint candidates (tonarino#262)

* Add a missing call to reset a peer's endpoint when NAT traversal fails to connect to any endpoint candidates

* Simplify the process of resetting a peer to its server-reported endpoint
* Turn ChangeString into a PeerChange enum, don't print NAT traversal reattempt as a modification

* Remove the ChangeString type

* Fix a stupid copy-paste error
* update netlink-*, toml, clap, other small dependencies
* switch back to x25519-dalek from curve25519-dalek
* hostsfile: change internal map from hash to btree

This change makes the innernet section of /etc/hosts always ordered and
deterministic. We can take advantage of that to avoid writes, that will
be done in another commit.

* hostsfile: reduce number of writes if content hasn't changed

* hostsfile: return bool to inform if file has been written

This commit also makes the logs print accordingly to the new behavior.

* hostsfile: remove has_content_changed in favor of comparing old and new sections

* hostsfile: print the correct hosts path in log message

* hostsfile: remove unnecessary intermediate variable
Follow-up to just-merged tonarino#175. We no longer install the `inn` symlink, so users doing that manually should know what they are doing.
…narino#267)

* meta: add Brian, Ryo, Matěj as authors, canonicalize Jake's email

Follow-up to tonarino#252.

* Also update shared/Cargo.toml

Co-authored-by: Jake McGinty <[email protected]>

---------

Co-authored-by: Jake McGinty <[email protected]>
* meta: release v1.6.0

* README: update release steps
@Juanito87 Juanito87 self-assigned this Sep 14, 2023
@Juanito87 Juanito87 changed the base branch from main to triton September 14, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants