瀏覽代碼

remove static check for peer port

Abhishek Kondur 2 年之前
父節點
當前提交
e9e8542312
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      logic/peers.go

+ 1 - 1
logic/peers.go

@@ -287,7 +287,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
 // GetPeerListenPort - given a host, retrieve it's appropriate listening port
 func GetPeerListenPort(host *models.Host) int {
 	peerPort := host.ListenPort
-	if !host.IsStatic && host.WgPublicListenPort != 0 {
+	if host.WgPublicListenPort != 0 {
 		peerPort = host.WgPublicListenPort
 	}
 	return peerPort