go-libp2p
go-libp2p copied to clipboard
Check transport consistency with local connection address before recording observed address
When we receive observed address in identify we check to see if we are listening on any transport of the reported address. We should also check if conn.LocalMultiaddr() is consistent with the reported address.
I believe this to be the reason that some nodes are advertising their well-known prefix IPv4 Converted IPv6 address. They are learning these addresses from NAT64 peers. Discussion here. Specific scenario here: