-
Notifications
You must be signed in to change notification settings - Fork 213
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
fix: online stun test #1065
fix: online stun test #1065
Conversation
maybe it helps against test flakiness...
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.
I'm unsure, i worry the log output will be more messy and as l.google.com is already loadbalanced between datacenters with each datacenter having multiple servers running. but otoh, who knows?
src/hp/netcheck.rs
Outdated
UseIpv6::None, | ||
|
||
let stun_servers = vec![ | ||
("stun.l.google.com", 19302, 0), |
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.
can you anchor these at the root? stun.l.google.com.
?
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.
?
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.
because we do DNS lookups if you specify the stun server by hostname. not having it anchored at the root means that the local "search" directives (i forget the official name) of your DNS configuration are applied. e.g. on many home networks that would result in lookups to stun.l.google.com.lan
or stun.l.google.com.local
, as well as the intended stun.l.google.com
.
By using stun.l.google.com.
you avoid this.
Hm, doesn't seem to help...
|
Keep the loop so we can add more stun servers later.
This should allow us to match requests across the services.
@@ -53,7 +53,7 @@ pub enum Probe { | |||
Https { | |||
delay: Duration, | |||
node: String, | |||
reg: DerpRegion, | |||
region: DerpRegion, |
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.
: +1:
maybe it helps against test flakiness of
test_google_stun
Servers from https://gist.github.com/mondain/b0ec1cf5f60ae726202e