-
Notifications
You must be signed in to change notification settings - Fork 906
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
Websocket fix #4945
Websocket fix #4945
Conversation
Maybe off-topic, when I run
Because that test expects a But my machine (Debian) has
Changing |
Yes it works, no its not correct. I was the assumption that "localdomain" is some sort of standard. Turns out it isn't. I didn't want to go for just "localhost" (which would work) because it can trigger certain internal code paths that shortcut address resolution to 127.0.0.1. I wanted the test to be in a way that it needs to run for getaddrinfo and let the system decide. |
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.
Sure, when Websockets have empty addresses this should now work. Good that its now test covered.
Imho, the way opt_add_addr_withtype
works is a little too iffy. But I also don't have a better idea.
It looks you can test what you have locally ( |
One stupid fix would be to add |
Thanks, add it as an alias in |
3bc0706
to
6b657fb
Compare
We should reduce the scope of the localhost parsing perhaps: use it as a fallback iff no_dns is set, otherwise resolve it like anything else? |
6b657fb
to
729eace
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.
ack 729eace |
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…n same port. We would fail connectd when listening on the IPv6 version failed; instead we should allow that. Changelog-Experimental: experimental-websocket-port fixed to work with default addresses. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
We treated ':' as an empty DNS name in EXPERIMENTAL, which is wrong. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…Tor) addrs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
729eace
to
6c21a6b
Compare
Trivial rebase on master to fix flake. |
ACK 6c21a6b I restarted CI because it failed at flaky but unrelated |
Whohoo, didn't know I had the permissions to do so, but the merge worked <3 |
I noticed that experimental-websocket-port didn't work on my node (it crashed). Along the way, I found a bug in DNS handling.