Browse Source

also check private addresses when looking for 4001

pull/598/head
vyzo 6 years ago
parent
commit
8c7da83b55
  1. 4
      p2p/host/relay/autorelay.go

4
p2p/host/relay/autorelay.go

@ -290,10 +290,6 @@ func cleanupAddressSet(pi pstore.PeerInfo) pstore.PeerInfo {
// pass-1: find default port
has4001 := false
for _, addr := range pi.Addrs {
if manet.IsPrivateAddr(addr) {
continue
}
port, err := tcpPort(addr)
if err != nil {
continue

Loading…
Cancel
Save