summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-04-10 17:08:49 +0200
committerChristian Poessinger <christian@poessinger.com>2019-04-10 17:10:47 +0200
commitc01d973aa45f891e5dc70755135297891a105bea (patch)
tree9e4f2f3eacb2a995b3d903ed2ecffdebaf1caac9 /src/conf_mode
parent6479b66983b08b26cc842523435fda096f8ccf94 (diff)
downloadvyos-1x-c01d973aa45f891e5dc70755135297891a105bea.tar.gz
vyos-1x-c01d973aa45f891e5dc70755135297891a105bea.zip
[dhcp] T1330: bugfix for non working wpad url
WPAD url could be configured by CLI but the generated config was not understood by ISC dhcp - caused by infalid if {} statement resulting in a missing option wpad-url block. (cherry picked from commit bfa9d55e9f1c3a091cff2fc214f2587d9b049cdb)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dhcp_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index bbe0bf28a..239c44076 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -66,7 +66,7 @@ ddns-update-style {% if ddns_enable -%} interim {%- else -%} none {%- endif %};
option rfc3442-static-route code 121 = array of integer 8;
option windows-static-route code 249 = array of integer 8;
{%- endif %}
-{% if static_route -%}
+{% if wpad -%}
option wpad-url code 252 = text;
{% endif %}