Fix bug in relay selector obfuscation resolver and extend tests#10043
Fix bug in relay selector obfuscation resolver and extend tests#10043
Conversation
4034f79 to
a3de656
Compare
MarkusPettersson98
left a comment
There was a problem hiding this comment.
Looks good! Left some minor comments, but logically it seems sound
@MarkusPettersson98 reviewed 2 files and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on MarkusPettersson98 and Serock3).
mullvad-relay-selector/tests/relay_selector.rs line 1802 at r1 (raw file):
} // TODO: Fix this test, use the relay list builder?
TODO
Code quote:
// TODO: Fix this test, use the relay list builder?mullvad-relay-selector/src/relay_selector/mod.rs line 1141 at r1 (raw file):
Other, None, }
Could you repurpose some of the previous comment to explain what these variants mean? The Ok and None cases are fairly self-explanatory, but what is signaled with Other?:)
Code quote:
enum IpVersionMatch {
Ok,
Other,
None,
}bdd1671 to
5344f05
Compare
Serock3
left a comment
There was a problem hiding this comment.
@Serock3 made 2 comments and resolved 1 discussion.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on MarkusPettersson98).
mullvad-relay-selector/src/relay_selector/mod.rs line 1141 at r1 (raw file):
Previously, MarkusPettersson98 (Markus Pettersson) wrote…
Could you repurpose some of the previous comment to explain what these variants mean? The
OkandNonecases are fairly self-explanatory, but what is signaled withOther?:)
Done
mullvad-relay-selector/tests/relay_selector.rs line 1802 at r1 (raw file):
Previously, MarkusPettersson98 (Markus Pettersson) wrote…
TODO
Nice catch, fixed!
MarkusPettersson98
left a comment
There was a problem hiding this comment.
@MarkusPettersson98 reviewed 3 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved.
mullvad-relay-selector/src/relay_selector/mod.rs line 1124 at r3 (raw file):
/// with the given port or IP version. Reject(Reason), }
🤩
Code quote:
/// Verdict for connecting using an obfuscation method.
enum ObfuscationVerdict {
/// Connect to the relay's "normal" WireGuard IP address.
AcceptWireguardEndpoint,
/// Connect to the relay using an IP address dedicated to
/// this obfuscation method.
AcceptObfuscationEndpoint,
/// The requested obfuscation cannot be resolved on the relay
/// with the given port or IP version.
Reject(Reason),
}5344f05 to
472bfad
Compare
MarkusPettersson98
left a comment
There was a problem hiding this comment.
@MarkusPettersson98 reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved.
This change is