summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-17 19:35:36 +0200
committerGitHub <noreply@github.com>2023-09-17 19:35:36 +0200
commit665523ac1b00f36de0bc09609a29e122a96c5612 (patch)
tree0c938d2c17a59edee7accf871169a559a78cee05 /data/templates
parent8c3ce3cd28ed26794a2e2e4f660d2335f2ff2e06 (diff)
parent090319c0e9cf3a002ae43ee6fd016ca51fd80af3 (diff)
downloadvyos-1x-665523ac1b00f36de0bc09609a29e122a96c5612.tar.gz
vyos-1x-665523ac1b00f36de0bc09609a29e122a96c5612.zip
Merge pull request #2251 from indrajitr/ddclient-cache-fix
ddclient: T5573: Update config generation aligning with caching fixes
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/dns-dynamic/ddclient.conf.j25
1 files changed, 1 insertions, 4 deletions
diff --git a/data/templates/dns-dynamic/ddclient.conf.j2 b/data/templates/dns-dynamic/ddclient.conf.j2
index 3446a9d1b..421daf1df 100644
--- a/data/templates/dns-dynamic/ddclient.conf.j2
+++ b/data/templates/dns-dynamic/ddclient.conf.j2
@@ -59,11 +59,8 @@ use=no {# ddclient default ('ip') results in confusing warning messag
{% endif %}
{% for host in config.host_name if config.host_name is vyos_defined %}
{% set ip_suffixes = ['v4', 'v6'] if config.ip_version == 'both'
- else (['v6'] if config.ip_version == 'ipv6' else ['']) %}
+ else [config.ip_version[2:]] %} {# 'ipvX' -> 'vX' #}
# Web service dynamic DNS configuration for {{ name }}: [{{ config.protocol }}, {{ host }}]
-{# For ipv4 only setup or legacy ipv6 setup, don't append 'new-style' compliant suffix
- ('usev4', 'ifv4', 'webv4' etc.) to the properties and instead live through the
- deprecation warnings for better compatibility with most ddclient protocols. #}
{{ render_config(host, address, service_cfg.web_options, ip_suffixes,
protocol=config.protocol, server=config.server, zone=config.zone,
login=config.username, password=config.password) }}