From 9baa4d5be9a627989227b20725a15532b86eb63f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 12 Apr 2020 19:47:59 +0200 Subject: 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. --- src/conf_mode/vpn_sstp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3