-
Notifications
You must be signed in to change notification settings - Fork 165
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
change: use DERP port from host_name URL #1143
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.
yesss, much better
looks like some tests are failing though |
The remaining fail is in |
So looking at both, Note that the test that is failing is where the provide side is behind a NAT, so some confusion might be happening due to the setup. @dignifiedquire already dealt with a similar bug before. TLDR; either it's a config issue and you might be able to help me understand where and I can update netsim or we re-introduced a bug we closed in #1128 |
Change that goes along with n0-computer/iroh#1143
Ah, so the netsim config would need to change to this with/after this PR: How are changes between chunk and iroh synchronized currently? |
Something else: Now that |
Maybe just |
merge conflict |
31927ed
to
bb370ca
Compare
Rebased and changed the field name to I was undecided about naming the field |
bb370ca
to
b8a3f8c
Compare
I'm happy with where it's at. Once approved, we just need to bump the netsim derp map config too. |
Now that
DerpNode::host_name
is an URL, the DERP port can be part of that URL, so we don't need a separatederp_port
field anymore.This makes setting custom DERP config or accepting a DERP server from the command line much simpler, because you need only a single URL string and not multiple options.
It looks a bit weird in the test code because oftenly those use
http://derp.invalid:{port}
now. I think we could just put the full IP in the address also and not setUseIpv4::Some()
.