removing pubkey update

This commit is contained in:
afeiszli
2021-07-26 17:57:50 +00:00
parent b35cac8c5e
commit 037271f0aa
9 changed files with 19 additions and 7 deletions

View File

@@ -232,7 +232,7 @@ func InitWireguard(node *nodepb.Node, privkey string, peers []wgtypes.PeerConfig
nodeport = int(node.Listenport)
conf := wgtypes.Config{}
if nodecfg.UDPHolePunch == "yes" {
if nodecfg.UDPHolePunch == "yes" && nodecfg.Name != "netmaker" {
conf = wgtypes.Config{
PrivateKey: &key,
ReplacePeers: true,