only determine default port if it is in a public addr
This commit is contained in:
parent
becb89a245
commit
1138fb6040
|
@ -291,6 +291,10 @@ 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…
Reference in New Issue