From a8a92eb3fcef8ed911ebcaedd32dc5b948c6c79a Mon Sep 17 00:00:00 2001 From: Eshenko Dmitriy Date: Sun, 14 Jul 2019 00:06:00 +0300 Subject: Fix bind param if outside-address not present If in config exist `bind=` without value, accel-ppp listen wrong ip address 255.255.255.255:1723. If need default behavior with listening on 0.0.0.0:1723 we don't set empty bind option. --- src/conf_mode/accel_pptp.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/conf_mode/accel_pptp.py') diff --git a/src/conf_mode/accel_pptp.py b/src/conf_mode/accel_pptp.py index 6c53e8dd4..5f8ccfd84 100755 --- a/src/conf_mode/accel_pptp.py +++ b/src/conf_mode/accel_pptp.py @@ -84,7 +84,9 @@ wins2={{wins[1]}} {% endif %} [pptp] +{% if outside_addr %} bind={{outside_addr}} +{% endif %} verbose=5 ppp-max-mtu={{mtu}} mppe={{authentication['mppe']}} -- cgit v1.2.3 From 5159252e53b620a1a6345f7651f122ef6c82bb07 Mon Sep 17 00:00:00 2001 From: Eshenko Dmitriy Date: Mon, 15 Jul 2019 20:10:49 +0300 Subject: Fix typo pppoe-server to pptp-server --- src/conf_mode/accel_pptp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/accel_pptp.py') diff --git a/src/conf_mode/accel_pptp.py b/src/conf_mode/accel_pptp.py index 5f8ccfd84..1dd7efb3e 100755 --- a/src/conf_mode/accel_pptp.py +++ b/src/conf_mode/accel_pptp.py @@ -296,7 +296,7 @@ def verify(c): if c['authentication']['mode'] == 'local': if not c['authentication']['local-users']: - raise ConfigError('pppoe-server authentication local-users required') + raise ConfigError('pptp-server authentication local-users required') for usr in c['authentication']['local-users']: if not c['authentication']['local-users'][usr]['passwd']: raise ConfigError('user ' + usr + ' requires a password') -- cgit v1.2.3