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

Enable both exit routes at the same time #1159

Merged
merged 2 commits into from
Jan 29, 2023
Merged

Conversation

juanfont
Copy link
Owner

As indicated by @bradfitz (thanks!!) at #804 (comment), both routes (IPv4 and IPv6) need to enabled for an exit node to be considered.

This PR makes sure that when enabling 0.0.0.0/0 or ::/0 the other gets enabled too.

@juanfont juanfont requested a review from kradalby as a code owner January 22, 2023 22:44
@juanfont juanfont force-pushed the enable-both-exit-routers branch 2 times, most recently from 078f4da to 25c7c00 Compare January 29, 2023 10:30
As indicated by bradfitz in #804 (comment),
both routes for the exit node must be enabled at the same time. If a user tries to enable one of the exit node routes,
the other gets activated too.

This commit also reduces the API surface, making private a method that didnt need to be exposed.
Fixed linting
@juanfont juanfont force-pushed the enable-both-exit-routers branch from 25c7c00 to e8fe381 Compare January 29, 2023 10:47
@juanfont juanfont merged commit 0f65918 into main Jan 29, 2023
@juanfont juanfont deleted the enable-both-exit-routers branch January 29, 2023 11:25
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.

2 participants