Sfoglia il codice sorgente

fix error from branch create

Matthew R. Kasun 2 anni fa
parent
commit
482246477c
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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