Explorar o código

fix error from branch create

Matthew R. Kasun %!s(int64=2) %!d(string=hai) anos
pai
achega
482246477c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      logic/peers.go

+ 3 - 0
logic/peers.go

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