summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/vpn_sstp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_sstp.py b/src/conf_mode/vpn_sstp.py
index b2eb5bdcb..cedecfdec 100755
--- a/src/conf_mode/vpn_sstp.py
+++ b/src/conf_mode/vpn_sstp.py
@@ -319,7 +319,7 @@ def generate(sstp):
tmpl = env.get_template('chap-secrets.tmpl')
config_text = tmpl.render(sstp)
with open(sstp_chap_secrets, 'w') as f:
- f.write(sstp_chap_secrets)
+ f.write(config_text)
os.chmod(sstp_chap_secrets, S_IRUSR | S_IWUSR | S_IRGRP)
else: