-
Notifications
You must be signed in to change notification settings - Fork 352
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
Make Smart routing override Multihop #6996
Make Smart routing override Multihop #6996
Conversation
53afeb4
to
816a7c0
Compare
816a7c0
to
b37a04d
Compare
9fe8259
to
5e88e55
Compare
5e88e55
to
2c27d57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
2c27d57
to
c19c9a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, 4 of 4 files at r4, 1 of 1 files at r5, 1 of 1 files at r6, 4 of 8 files at r14, 1 of 1 files at r20, 1 of 2 files at r31, 1 of 1 files at r32, 6 of 6 files at r33, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @MarkusPettersson98)
e386659
to
74fe671
Compare
If both multihop and DAITA (with smart routing) is enabled, a DAITA-compatible entry relay will be selected. This implies that if the user has selected an entry relay which is not DAITA-enabled, the relay selector will override this choice and force a DAITA-enabled relay as entry. If smart routing is disabled in this case, the user's selected entry will always be selected, even if this means that the user will end up in a blocked state.
74fe671
to
a416d9d
Compare
This PR includes changes to
mullvad-relay-selector
for making Smart routing override Multihop. It also includes some drive-by changes intended to make it easier to follow what's happening in the relay selector.How it works
If both multihop and DAITA (with smart routing) is enabled, a DAITA-enabled entry relay will be selected. If the user has selected an entry relay which is not DAITA-enabled, the relay selector will override the user's choice and force a DAITA-enabled relay as entry. If smart routing is subsequently disabled, the user's selected entry will always be selected even if this means that the user will end up in a blocked state.
This change is