diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-01-30 18:50:00 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-01-30 19:28:30 +0100 |
commit | 2fc3900d3a60d6247a156f710cbbeca67a730d87 (patch) | |
tree | 8b90f01e4a4b693de13bf1a80dd63fdae4d9115d | |
parent | aaf2a728a759c0e22d0ccafc3b2addbc5cfd956e (diff) | |
download | vyos-1x-2fc3900d3a60d6247a156f710cbbeca67a730d87.tar.gz vyos-1x-2fc3900d3a60d6247a156f710cbbeca67a730d87.zip |
T1213: fix ddclient when no server is given
(cherry picked from commit cc3f6088783373bd56cd821599bdc12ba123125b)
-rwxr-xr-x | src/conf_mode/dynamic_dns.py | 2 |
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 %} |