summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-09-06 14:46:43 -0700
committerhagbard <vyosdev@derith.de>2019-09-06 14:50:55 -0700
commit189ae4f7096abf7ca7100a4a31e038ce9e3e19c2 (patch)
tree881ccad7b8bf16ebbf89022925050822b07c7c33 /python
parent26ace9a7b92020bffebe85897cd3790342820612 (diff)
downloadvyos-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
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig.py2
1 files changed, 1 insertions, 1 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'])