summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-02 09:39:34 +0100
committerGitHub <noreply@github.com>2024-02-02 09:39:34 +0100
commit5a9a4d5d34ac04d498e62e2537f3618d88ba08f3 (patch)
treebe7b62abdbb0784e95af80b11d72f878f4d06744 /data
parentb5a907135ef1943b4dbf8d195cae38cfff360d65 (diff)
parentd9ed904b72fdf6641b0f7d5316207a99ef90a711 (diff)
downloadvyos-1x-5a9a4d5d34ac04d498e62e2537f3618d88ba08f3.tar.gz
vyos-1x-5a9a4d5d34ac04d498e62e2537f3618d88ba08f3.zip
Merge pull request #2926 from indrajitr/sagitta-ddclient-T5966
ddclient: T5966: Adjust dynamic dns config address subpath (manual backport #2860)
Diffstat (limited to 'data')
-rw-r--r--data/templates/dns-dynamic/ddclient.conf.j27
1 files changed, 5 insertions, 2 deletions
diff --git a/data/templates/dns-dynamic/ddclient.conf.j2 b/data/templates/dns-dynamic/ddclient.conf.j2
index 6c0653a55..5538ea56c 100644
--- a/data/templates/dns-dynamic/ddclient.conf.j2
+++ b/data/templates/dns-dynamic/ddclient.conf.j2
@@ -7,7 +7,7 @@ use{{ ipv }}={{ address if address == 'web' else 'if' }}{{ ipv }}, \
web{{ ipv }}={{ web_options.url }}, \
{% endif %}
{% if web_options.skip is vyos_defined %}
-web-skip{{ ipv }}='{{ web_options.skip }}', \
+web{{ ipv }}-skip='{{ web_options.skip }}', \
{% endif %}
{% else %}
if{{ ipv }}={{ address }}, \
@@ -45,9 +45,12 @@ use=no
else ['']) %}
{% set password = config.key if config.protocol == 'nsupdate'
else config.password %}
+{% set address = 'web' if config.address.web is vyos_defined
+ else config.address.interface %}
+{% set web_options = config.address.web | default({}) %}
# Web service dynamic DNS configuration for {{ service }}: [{{ config.protocol }}, {{ host }}]
-{{ render_config(host, config.address, config.web_options, ip_suffixes,
+{{ render_config(host, address, web_options, ip_suffixes,
protocol=config.protocol, server=config.server, zone=config.zone,
login=config.username, password=password, ttl=config.ttl,
min_interval=config.wait_time, max_interval=config.expiry_time) }}