浏览代码

bug squashin

worker-9 4 年之前
父节点
当前提交
0d049b9d9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netclient/wireguard/kernel.go

+ 1 - 1
netclient/wireguard/kernel.go

@@ -425,7 +425,7 @@ func SetPeers(iface string, keepalive int32, peers []wgtypes.PeerConfig) {
 				}
 			}
 		}
-		udpendpoint := peer.Endpoint.IP.String() + ":" + peer.Endpoint.IP.String()
+		udpendpoint := peer.Endpoint.String()
 		var allowedips string
 		var iparr []string
 		for _, ipaddr := range peer.AllowedIPs {