summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-01 21:21:17 +0100
committerGitHub <noreply@github.com>2024-02-01 21:21:17 +0100
commit176a79420c5bf676b0f857a169a9b9c3906ee0c0 (patch)
tree4dd9eb9f5322f7e8bb0ae970e0ace6dab7b0880e /data/templates
parenta93491acfca90ac910a235d03ca8e93830c98c12 (diff)
parent323994ed0fc40b67a0aa7c839229864ccb6b0e33 (diff)
downloadvyos-1x-176a79420c5bf676b0f857a169a9b9c3906ee0c0.tar.gz
vyos-1x-176a79420c5bf676b0f857a169a9b9c3906ee0c0.zip
Merge pull request #2860 from indrajitr/ddclient-update-20240119
ddclient: T5966: Adjust dynamic dns config address subpath
Diffstat (limited to 'data/templates')
-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) }}