From b294382d8f8ce0efe0cdacae575ce4adccbd6eaa Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 10 Apr 2019 17:08:49 +0200 Subject: [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 code 252 = text;" block. --- src/conf_mode/dhcp_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index e57bad28b..e8ac1742f 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 %} -- cgit v1.2.3