diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-12 19:47:59 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-12 19:49:21 +0200 |
commit | 9baa4d5be9a627989227b20725a15532b86eb63f (patch) | |
tree | e1ae0467d26af92cc0e984ecff2abc4b18dcfec4 /src | |
parent | 80e4aaa163cdec22b43d21b14dedbeb038914b60 (diff) | |
download | vyos-1x-9baa4d5be9a627989227b20725a15532b86eb63f.tar.gz vyos-1x-9baa4d5be9a627989227b20725a15532b86eb63f.zip |
vpn: sstp: T2008: bugfix chap-secrets generation
Commit 13510cac5a4a ("vpn: sstp: T2008: migrate from SysVinit -> systemd")
unfortunately wrote the filename into the chap-secrets file instead of the
rendered secrets.
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/vpn_sstp.py | 2 |
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: |