瀏覽代碼

validate after unset gws

abhishek9686 1 年之前
父節點
當前提交
c02528e63f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 				}
 			}