Browse Source

Merge pull request #561 from lnykww/master

Fix UDP listen on a Unspecified Address and Dial from the Unspecified Address
pull/568/head
Steven Allen 6 years ago
committed by GitHub
parent
commit
0e4b173287
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/protocol/identify/id.go

2
p2p/protocol/identify/id.go

@ -413,7 +413,7 @@ func (ids *IDService) consumeObservedAddress(observed []byte, c inet.Conn) {
}
log.Debugf("identify identifying observed multiaddr: %s %s", c.LocalMultiaddr(), ifaceaddrs)
if !addrInAddrs(c.LocalMultiaddr(), ifaceaddrs) {
if !addrInAddrs(c.LocalMultiaddr(), ifaceaddrs) && !addrInAddrs(c.LocalMultiaddr(), ids.Host.Network().ListenAddresses()) {
// not in our list
return
}

Loading…
Cancel
Save