Explorar o código

validate after unset gws

abhishek9686 hai 1 ano
pai
achega
c02528e63f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      logic/peers.go

+ 1 - 1
logic/peers.go

@@ -181,7 +181,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
 					peerIndexMap[peerHost.PublicKey.String()] = len(hostPeerUpdate.Peers) - 1
 					continue
 				}
-				if peer.InternetGwID != "" {
+				if peer.InternetGwID != "" && peer.InternetGwID != node.ID.String() {
 					continue
 				}
 			}