]> git.ipfire.org Git - ddns.git/commitdiff
Merge branch 'dyns.cx'
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 3 Sep 2014 06:00:57 +0000 (08:00 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 3 Sep 2014 06:00:57 +0000 (08:00 +0200)
ddns.conf.sample
src/ddns/providers.py

index e2f61ea285fface11effe62bec0188f55f7b5e75..cf4d6a2ef44b8e547e4f8e20126469679357f9e5 100644 (file)
 
 # [test.spdns.org]
 # provider = spdns.org
+
+# Only use one the these two auth options.
+# token = token
 # username = user
 # password = pass
 
index 2ffc35d50953da4fe44823c5b7b647f05d34c4c3..a9893b86213f3784b7a2bb248ec13b33badd4836 100644 (file)
@@ -1030,6 +1030,14 @@ class DDNSProviderSPDNS(DDNSProtocolDynDNS2, DDNSProvider):
 
        url = "https://update.spdns.de/nic/update"
 
+       @property
+       def username(self):
+               return self.get("username") or self.hostname
+
+       @property
+       def password(self):
+               return self.get("username") or self.token
+
 
 class DDNSProviderStrato(DDNSProtocolDynDNS2, DDNSProvider):
        handle    = "strato.com"