summaryrefslogtreecommitdiff
path: root/data/templates/dns-dynamic
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-09-12 20:09:16 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-09-12 21:43:25 -0500
commit090319c0e9cf3a002ae43ee6fd016ca51fd80af3 (patch)
treed3abf346af6d8ea2636d543efa0f729da8e32895 /data/templates/dns-dynamic
parentb730015945dcac62db4373ebfa8072d7bc1acff1 (diff)
downloadvyos-1x-090319c0e9cf3a002ae43ee6fd016ca51fd80af3.tar.gz
vyos-1x-090319c0e9cf3a002ae43ee6fd016ca51fd80af3.zip
ddclient: T5573: Update config generation aligning with caching fixes
Now that the caching fixes are in place, we can update the config to remove legacy treatment of ipv4 related properties.
Diffstat (limited to 'data/templates/dns-dynamic')
-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) }}