Skip to content
Permalink
Browse files

[wireguard] - T1639: wireguard pubkey change error

  - sudo added to wg call
  - debug print removed when pubkey changes
  • Loading branch information...
hagbard-01 committed Sep 6, 2019
1 parent 26ace9a commit 189ae4f7096abf7ca7100a4a31e038ce9e3e19c2
Showing with 1 addition and 3 deletions.
  1. +1 −1 python/vyos/ifconfig.py
  2. +0 −2 src/conf_mode/interface-wireguard.py
@@ -1349,7 +1349,7 @@ def update(self):
# fmask permission check?
pass

cmd = "wg set {} ".format(self._ifname)
cmd = "sudo wg set {} ".format(self._ifname)
cmd += "listen-port {} ".format(self.config['port'])
cmd += "fwmark {} ".format(str(self.config['fwmark']))
cmd += "private-key {} ".format(self.config['private-key'])
@@ -223,8 +223,6 @@ def apply(c):
if nkey != ekey:
sl.syslog(
sl.LOG_NOTICE, "peer {0} pubkey changed from {1} to {2} on interface {3}".format(p, ekey, nkey, ifname))
print (
"peer {0} pubkey changed from {1} to {2} on interface {3}".format(p, ekey, nkey, ifname))
intfc.remove_peer(ekey)

intfc.config['private-key'] = pk

0 comments on commit 189ae4f

Please sign in to comment.
You can’t perform that action at this time.