Browse Source

don't skip peer if endpoint is the same

and can not set endpoint to localaddress
Matthew R. Kasun 2 years ago
parent
commit
c384e9dc4d
1 changed files with 0 additions and 3 deletions
  1. 0 3
      logic/peers.go

+ 0 - 3
logic/peers.go

@@ -111,9 +111,6 @@ func GetPeerUpdate(node *models.Node) (models.PeerUpdate, error) {
 				if peer.LocalListenPort != 0 {
 					peer.ListenPort = peer.LocalListenPort
 				}
-			} else {
-				continue
-			}
 		}
 
 		// set address if setEndpoint is true