Przeglądaj źródła

validate after unset gws

abhishek9686 1 rok temu
rodzic
commit
c02528e63f
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 				}
 			}