summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()