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

Make Smart routing override Multihop #6996

Conversation

MarkusPettersson98
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 commented Oct 16, 2024

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 Reviewable

@MarkusPettersson98 MarkusPettersson98 force-pushed the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch 6 times, most recently from 53afeb4 to 816a7c0 Compare October 17, 2024 09:28
@MarkusPettersson98 MarkusPettersson98 force-pushed the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch from 816a7c0 to b37a04d Compare October 17, 2024 10:47
@MarkusPettersson98 MarkusPettersson98 marked this pull request as ready for review October 17, 2024 13:08
@MarkusPettersson98 MarkusPettersson98 force-pushed the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch from 9fe8259 to 5e88e55 Compare October 18, 2024 12:42
@MarkusPettersson98 MarkusPettersson98 force-pushed the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch from 5e88e55 to 2c27d57 Compare October 18, 2024 12:49
Copy link
Contributor

@Serock3 Serock3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

@MarkusPettersson98 MarkusPettersson98 force-pushed the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch from 2c27d57 to c19c9a0 Compare October 18, 2024 13:15
Copy link
Contributor

@Serock3 Serock3 left a 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)

@MarkusPettersson98 MarkusPettersson98 force-pushed the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch from e386659 to 74fe671 Compare October 18, 2024 13:43
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.
@MarkusPettersson98 MarkusPettersson98 force-pushed the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch from 74fe671 to a416d9d Compare October 18, 2024 13:49
@MarkusPettersson98 MarkusPettersson98 merged commit f7ee8f3 into main Oct 18, 2024
55 of 56 checks passed
@MarkusPettersson98 MarkusPettersson98 deleted the make-sure-to-use-a-daita-compatible-entry-even-if-the-exit-des-1303 branch October 18, 2024 14:11
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