summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEshenko Dmitriy <snooppy@mail.ua>2019-07-14 00:06:00 +0300
committerGitHub <noreply@github.com>2019-07-14 00:06:00 +0300
commita8a92eb3fcef8ed911ebcaedd32dc5b948c6c79a (patch)
treea27269e43c2d357d549343925f4ed9b43afe952a /src
parent787c8f93b0e8e22d77a1df1d6be423de681ad03c (diff)
downloadvyos-1x-a8a92eb3fcef8ed911ebcaedd32dc5b948c6c79a.tar.gz
vyos-1x-a8a92eb3fcef8ed911ebcaedd32dc5b948c6c79a.zip
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.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/accel_pptp.py2
1 files changed, 2 insertions, 0 deletions
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']}}