summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-30 18:50:00 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-30 18:50:00 +0100
commitcc3f6088783373bd56cd821599bdc12ba123125b (patch)
tree3ffdc7f1c06f7a0c37a62e21d9eb5375415ada33 /src
parent959d96ceb38080748b6d195031a8013eb4a67f3b (diff)
downloadvyos-1x-cc3f6088783373bd56cd821599bdc12ba123125b.tar.gz
vyos-1x-cc3f6088783373bd56cd821599bdc12ba123125b.zip
T1213: fix ddclient when no server is given
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/dynamic_dns.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/dynamic_dns.py b/src/conf_mode/dynamic_dns.py
index afebc5d0e..03b06f875 100755
--- a/src/conf_mode/dynamic_dns.py
+++ b/src/conf_mode/dynamic_dns.py
@@ -63,7 +63,9 @@ protocol={{ srv.protocol }}
max-interval=28d
login={{ srv.login }}
password='{{ srv.password }}'
+{% if srv.server -%}
server={{ srv.server }}
+{% endif -%}
{{ host }}
{% endfor %}
{% endfor %}