ddclient: Don't include blank server= lines.

This commit is contained in:
Svein Ove Aas 2016-12-25 23:32:40 +01:00 committed by Robert Helgesson
parent 339313cf48
commit fec95a40f1
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -132,7 +132,8 @@ in
login=${config.services.ddclient.username}
password=${config.services.ddclient.password}
protocol=${config.services.ddclient.protocol}
server=${config.services.ddclient.server}
${let server = config.services.ddclient.server; in
lib.optionalString (server != "") "server=${server}"}
ssl=${if config.services.ddclient.ssl then "yes" else "no"}
wildcard=YES
${config.services.ddclient.domain}