summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-09 09:10:52 +0100
committerGitHub <noreply@github.com>2023-11-09 09:10:52 +0100
commit2012331df7583b53dbf1ef38b6fb84a9ac013dcc (patch)
treecb0074939bb9d01b74ef3a1b7fdfff4b53ef2e4b /data
parentb083e1bbf230d4e407bd9adb508197517d15bfb1 (diff)
parent9efa76910458b6d58882768641ab598b7c0c9699 (diff)
downloadvyos-1x-2012331df7583b53dbf1ef38b6fb84a9ac013dcc.tar.gz
vyos-1x-2012331df7583b53dbf1ef38b6fb84a9ac013dcc.zip
Merge pull request #2461 from indrajitr/ddclient-config-20231108
ddclient: T5708: Ensure password is always wrapped in quotes
Diffstat (limited to 'data')
-rw-r--r--data/templates/dns-dynamic/ddclient.conf.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/dns-dynamic/ddclient.conf.j2 b/data/templates/dns-dynamic/ddclient.conf.j2
index 879887a1f..356b8d0d0 100644
--- a/data/templates/dns-dynamic/ddclient.conf.j2
+++ b/data/templates/dns-dynamic/ddclient.conf.j2
@@ -13,9 +13,9 @@ web-skip{{ ipv }}='{{ web_options.skip }}', \
if{{ ipv }}={{ address }}, \
{% endif %}
{% endfor %}
-{# Other service options #}
+{# Other service options with special treatment for password #}
{% for k,v in kwargs.items() if v is vyos_defined %}
-{{ k | replace('_', '-') }}={{ v }}{{ ',' if not loop.last }} \
+{{ k | replace('_', '-') }}={{ "'%s'" % (v) if k == 'password' else v }}{{ ',' if not loop.last }} \
{% endfor %}
{# Actual hostname for the service #}
{{ host }}
@@ -29,7 +29,7 @@ cache={{ config_file | replace('.conf', '.cache') }}
{# ddclient default (web=dyndns) doesn't support ssl and results in process lockup #}
web=googledomains
{# ddclient default (use=ip) results in confusing warning message in log #}
-use=no
+use=disabled
{% if address is vyos_defined %}
{% for address, service_cfg in address.items() %}