summaryrefslogtreecommitdiff
path: root/src/conf_mode/dynamic_dns.py
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 19:28:30 +0100
commit2fc3900d3a60d6247a156f710cbbeca67a730d87 (patch)
tree8b90f01e4a4b693de13bf1a80dd63fdae4d9115d /src/conf_mode/dynamic_dns.py
parentaaf2a728a759c0e22d0ccafc3b2addbc5cfd956e (diff)
downloadvyos-1x-2fc3900d3a60d6247a156f710cbbeca67a730d87.tar.gz
vyos-1x-2fc3900d3a60d6247a156f710cbbeca67a730d87.zip
T1213: fix ddclient when no server is given
(cherry picked from commit cc3f6088783373bd56cd821599bdc12ba123125b)
Diffstat (limited to 'src/conf_mode/dynamic_dns.py')
-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 %}