From: Stefan Schantl Date: Wed, 10 Sep 2014 19:10:24 +0000 (+0200) Subject: nsupdate.info: Use "token" instead of "secret" in config file. X-Git-Tag: 005~12 X-Git-Url: http://git.ipfire.org/?p=ddns.git;a=commitdiff_plain;h=9c777232644fa7793fe0b822a914cee007d64578 nsupdate.info: Use "token" instead of "secret" in config file. For compatiblity reasons to previously used "secret" is still supported. --- diff --git a/ddns.conf.sample b/ddns.conf.sample index c05a1ce..cad8a89 100644 --- a/ddns.conf.sample +++ b/ddns.conf.sample @@ -88,7 +88,7 @@ # [test.nsupdate.info] # provider = nsupdate.info -# secret = secret +# token = token # [test.opendns.com] # handle = opendns.com diff --git a/src/ddns/providers.py b/src/ddns/providers.py index 2a89b50..aac9ff8 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -885,7 +885,7 @@ class DDNSProviderNsupdateINFO(DDNSProtocolDynDNS2, DDNSProvider): @property def password(self): - return self.get("secret") + return self.token or self.get("secret") @property def url(self):