diff options
author | hagbard <vyosdev@derith.de> | 2019-09-09 09:32:57 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-09-09 09:32:57 -0700 |
commit | f7456361b5b94f3c69f8fa0f34f8bff0ef68f9aa (patch) | |
tree | 80046acf644f73a66edc8ff6137a08da8ed830bb /python/vyos | |
parent | 6f666f0a62fb98fcab800be813141f44dd1ab8a7 (diff) | |
download | vyos-1x-f7456361b5b94f3c69f8fa0f34f8bff0ef68f9aa.tar.gz vyos-1x-f7456361b5b94f3c69f8fa0f34f8bff0ef68f9aa.zip |
[wireguard] - T1639: wireguard pubkey change error
- removed sudo as is already runs as root
- set privte key as variable in preparation to support multiple
pk's
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py index 5b1c11a47..62bf94d79 100644 --- a/python/vyos/ifconfig.py +++ b/python/vyos/ifconfig.py @@ -1349,7 +1349,7 @@ class WireGuardIf(Interface): # fmask permission check? pass - cmd = "sudo wg set {} ".format(self._ifname) + cmd = "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']) @@ -1380,7 +1380,7 @@ class WireGuardIf(Interface): Giving it a readable name is a vyos feature, to remove a peer the pubkey and the interface is needed, to remove the entry. """ - cmd = "sudo wg set {0} peer {1} remove".format( + cmd = "wg set {0} peer {1} remove".format( self._ifname, str(peerkey)) self._cmd(cmd) |