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') 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