nim-libp2p
nim-libp2p copied to clipboard
switch.peerInfo reports with INADDR_ANY or INADDR6_ANY multiaddresses.
nim-libp2p
provides non-usable multiaddresses via switch.peerInfo
.
This method is used in nimbus-eth2
to report locally bound addresses to remote caller (Original issue is https://github.com/status-im/nimbus-eth2/issues/6060).
But there should be a way to receive list of addresses of local interfaces. Address 0.0.0.0
or [::]
should be expanded to proper local interface addresses.