go-libp2p icon indicating copy to clipboard operation
go-libp2p copied to clipboard

Consider advertising all interface addresses and not just the primary interface addrs

Open sukunrt opened this issue 11 months ago • 1 comments

When a host is listening on 0.0.0.0 we only advertise the primary interface address of the node. The primary interface is selected by querying the routing table for the default route. But if the node is listening on 0.0.0.0, we should advertise all the interface addresses.

Specifically, I want the nodes to advertise the tailscale interface addrs so I can connect to nodes running over my different devices.

The obvious downside here is that we'll start advertising a lot more addresses to the network.

sukunrt avatar Dec 01 '24 17:12 sukunrt

Also have the same issue when running on a docker swarm network

dozyio avatar May 03 '25 15:05 dozyio