diff options
author | hagbard <vyosdev@derith.de> | 2019-09-06 14:46:43 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-09-06 14:50:55 -0700 |
commit | 189ae4f7096abf7ca7100a4a31e038ce9e3e19c2 (patch) | |
tree | 881ccad7b8bf16ebbf89022925050822b07c7c33 | |
parent | 26ace9a7b92020bffebe85897cd3790342820612 (diff) | |
download | vyos-1x-189ae4f7096abf7ca7100a4a31e038ce9e3e19c2.tar.gz vyos-1x-189ae4f7096abf7ca7100a4a31e038ce9e3e19c2.zip |
[wireguard] - T1639: wireguard pubkey change error
- sudo added to wg call
- debug print removed when pubkey changes
-rw-r--r-- | python/vyos/ifconfig.py | 2 | ||||
-rwxr-xr-x | src/conf_mode/interface-wireguard.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py index 0479e3672..5b1c11a47 100644 --- a/python/vyos/ifconfig.py +++ b/python/vyos/ifconfig.py @@ -1349,7 +1349,7 @@ class WireGuardIf(Interface): # 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']) diff --git a/src/conf_mode/interface-wireguard.py b/src/conf_mode/interface-wireguard.py index 265491993..e7b9a267f 100755 --- a/src/conf_mode/interface-wireguard.py +++ b/src/conf_mode/interface-wireguard.py @@ -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 |