also check private addresses when looking for 4001

This commit is contained in:
vyzo 2019-04-14 15:47:46 +03:00
parent da65fd74a6
commit 8c7da83b55
1 changed files with 0 additions and 4 deletions

View File

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