From 718d9a123c2ba72b87d7f6e48a5e6d83fa86d494 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 11 Nov 2018 20:23:04 +0100 Subject: T998: "service dns dynamic" does now honor the "use-web" statement This bug was present since the old Vyatta days as the use-web statement was only put into action when also "use-web skip" was defined. The service https://ipinfo.io/ip does not place any crap in front of the IP address so the skip statement was not used and made no sense. --- src/conf_mode/dynamic_dns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf_mode/dynamic_dns.py b/src/conf_mode/dynamic_dns.py index 60efcaae2..afebc5d0e 100755 --- a/src/conf_mode/dynamic_dns.py +++ b/src/conf_mode/dynamic_dns.py @@ -38,8 +38,8 @@ cache=/var/cache/ddclient/ddclient.cache # # ddclient configuration for interface "{{ interface.interface }}": # -{% if interface.web_url and interface.web_skip -%} -use=web, web={{ interface.web_url}}, web-skip={{ interface.web_skip }} +{% if interface.web_url -%} +use=web, web={{ interface.web_url}} {%- if interface.web_skip %}, web-skip={{ interface.web_skip }}{% endif %} {% else -%} use=if, if={{ interface.interface }} {% endif -%} -- cgit v1.2.3