summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-08 22:27:21 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-08 22:27:21 +0200
commit6474b89e2dca1abff79ad385992d2302ce033e93 (patch)
treee50adf3ef1d30c88598da787b7e634065f7ebcfe /src
parent091e921fe433bbeedae24224400186c2b705dbe8 (diff)
downloadvyos-1x-6474b89e2dca1abff79ad385992d2302ce033e93.tar.gz
vyos-1x-6474b89e2dca1abff79ad385992d2302ce033e93.zip
wireguard: T2244: fix writing PSK
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-wireguard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-wireguard.py b/src/conf_mode/interfaces-wireguard.py
index 4ff9f1395..8a44fe5e7 100755
--- a/src/conf_mode/interfaces-wireguard.py
+++ b/src/conf_mode/interfaces-wireguard.py
@@ -295,7 +295,7 @@ def apply(wg):
if peer['psk']:
psk_file = '/config/auth/wireguard/psk'
with open(psk_file, 'w') as f:
- f.write(peer['psk']))
+ f.write(peer['psk'])
w.config['psk'] = psk_file
w.update()