-
Notifications
You must be signed in to change notification settings - Fork 335
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
Don't hijack DNS config when localhost is used #6861
Conversation
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 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dlon)
talpid-core/src/dns/macos.rs
line 196 at r1 (raw file):
set.filter_map(|addr| addr.parse::<IpAddr>().ok()) .find(|addr| addr.is_loopback()) .is_some()
As clippy suggets, prefer any
here 😊
set.filter_map(|addr| addr.parse::<IpAddr>().ok())
.any(|addr| addr.is_loopback())
Code quote:
.find(|addr| addr.is_loopback())
.is_some()
7c58d1e
to
8cca793
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.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @MarkusPettersson98)
talpid-core/src/dns/macos.rs
line 196 at r1 (raw file):
Previously, MarkusPettersson98 (Markus Pettersson) wrote…
As clippy suggets, prefer
any
here 😊set.filter_map(|addr| addr.parse::<IpAddr>().ok()) .any(|addr| addr.is_loopback())
Done.
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 r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
8cca793
to
a169d15
Compare
If the resolver is set to (e.g.)
127.0.0.1
, don't replace it with10.64.0.1
. Hopefully prevents some fighting with other software.This does not change affect any of the firewall rules.
Close DES-1227.
This change is