summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-12 18:01:19 +0200
committerGitHub <noreply@github.com>2023-05-12 18:01:19 +0200
commit0224707acc7299b02eccdd1d2df434c4a57402b5 (patch)
tree98d05417f52baacd9c88442f41dbcd5fd20af004 /data/templates
parent25545b1e3cf2e94f3521e4ed80ce744f4b08683e (diff)
parent9fc53924271c151e3e5229a64acec35006d4f7fe (diff)
downloadvyos-1x-0224707acc7299b02eccdd1d2df434c4a57402b5.tar.gz
vyos-1x-0224707acc7299b02eccdd1d2df434c4a57402b5.zip
Merge pull request #2002 from Zen3515/fix-cloudflare-ddns
T5219: ddclient: Allow not set login for Cloudflare API token
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/dynamic-dns/ddclient.conf.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/dynamic-dns/ddclient.conf.j2 b/data/templates/dynamic-dns/ddclient.conf.j2
index c2c9b1dd6..e8ef5ac90 100644
--- a/data/templates/dynamic-dns/ddclient.conf.j2
+++ b/data/templates/dynamic-dns/ddclient.conf.j2
@@ -34,7 +34,9 @@ zone={{ config.zone }}
# DynDNS provider configuration for {{ service }}, {{ dns_record }}
protocol={{ config.protocol }},
max-interval=28d,
+{% if config.login is vyos_defined %}
login={{ config.login }},
+{% endif %}
password='{{ config.password }}',
{% if config.server is vyos_defined %}
server={{ config.server }},