We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 544c412 commit 679c214Copy full SHA for 679c214
p2p/protocol/identify/id.go
@@ -409,6 +409,11 @@ func (ids *IDService) consumeObservedAddress(observed []byte, c inet.Conn) {
409
return
410
}
411
412
+ if !HasConsistentTransport(c.RemoteMultiaddr(), ids.Host.Addrs()) {
413
+ log.Debugf("ignoring observed multiaddr that doesn't match the transports of any addresses we're announcing", c.RemoteMultiaddr())
414
+ return
415
+ }
416
+
417
log.Debugf("identify identifying observed multiaddr: %s %s", c.LocalMultiaddr(), ifaceaddrs)
418
if !addrInAddrs(c.LocalMultiaddr(), ifaceaddrs) && !addrInAddrs(c.LocalMultiaddr(), ids.Host.Network().ListenAddresses()) {
419
// not in our list
0 commit comments