-
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
Libp2p fails to determine default route on FreeBSD #973
Comments
what error do you get? I'm guessing you're able to load the routing table, but asking for the route is failing? |
"no route found for 0.0.0.0" |
just to confirm, you're specifically referring to FreeBSD, and not macs, right? |
I am. I haven't tested on MacOS. |
spun up a FreeBSD VM and can't reproduce:
The RIB's returned by the system call are:
(em0 network interface I think to debug / reproduce, the most useful thing to do would be to modify here to insert the line |
Cannot reproduce Printing route info here shows results similary to above. Default route is found. Maybe this issue was reported on a host that only has IPv6 addresses and no default route was found for In either case, this does not seem to be a defect (or has not been for a long time), so suggest closing this issue. |
It had an IPv4 address. But this was a long time ago on a machine that no longer exists (and was probably in a FreeBSD jail). Given that nobody can reproduce, I'm just going to close this. |
On FreeBSD,
netroute.Router.Route('0.0.0.0')
returns an error instead of returning the default route. We need some other way to determine the default route. We could just try looking up a well known IP address.go-libp2p/p2p/host/basic/basic_host.go
Lines 260 to 280 in 6a3b138
The text was updated successfully, but these errors were encountered: