diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-01-30 18:50:00 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-01-30 18:50:00 +0100 |
commit | cc3f6088783373bd56cd821599bdc12ba123125b (patch) | |
tree | 3ffdc7f1c06f7a0c37a62e21d9eb5375415ada33 | |
parent | 959d96ceb38080748b6d195031a8013eb4a67f3b (diff) | |
download | vyos-1x-cc3f6088783373bd56cd821599bdc12ba123125b.tar.gz vyos-1x-cc3f6088783373bd56cd821599bdc12ba123125b.zip |
T1213: fix ddclient when no server is given
-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 %} |