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.
nim-libp2p
provides non-usable multiaddresses viaswitch.peerInfo
. This method is used innimbus-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. Address0.0.0.0
or[::]
should be expanded to proper local interface addresses.