-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Figure out why MDNS is announcing port 4001 #652
Comments
Hey @Stebalien - I've been running into this... should have looked here sooner. I believe this is a result of the host not having any addresses set when the MDNS server starts.
4001 is just the default: https://github.com/libp2p/go-libp2p/blob/master/p2p/discovery/mdns.go#L71 If I move the port acquisition into the polling logic, the host eventually has addresses and the server can be started. |
Prevents the MDNS server from starting when the host has zero addresses. Re: libp2p/go-libp2p#652 Signed-off-by: Sander Pick <sanderpick@gmail.com>
Prevents the MDNS server from starting when the host has zero addresses. Re: libp2p/go-libp2p#652 Signed-off-by: Sander Pick <sanderpick@gmail.com>
Thanks for catching this! |
See: ipfs/kubo#6389 (comment).
This is a regression (go-ipfs 0.4.20 works, 0.4.21 doesn't).
The text was updated successfully, but these errors were encountered: