From: Philipp Spitzer Date: Wed, 5 Mar 2014 21:53:21 +0000 (+0100) Subject: Added possible URL parameters wildcard, mx, backmx and offline. X-Git-Tag: 0.0.2~32 X-Git-Url: https://git.toastfreeware.priv.at/toast/tdyndns.git/commitdiff_plain/572986d63775ecd1be7e23957be347364e16ba25 Added possible URL parameters wildcard, mx, backmx and offline. They are not used yet. --- diff --git a/cgi-bin/dyndns.py b/cgi-bin/dyndns.py index f9919dd..b89cd39 100755 --- a/cgi-bin/dyndns.py +++ b/cgi-bin/dyndns.py @@ -22,10 +22,17 @@ ZONE = '.dyn.colgarra.priv.at' fields = cgi.FieldStorage() +# the following fields are supported by most dyndns providers +# if a parameter is not provided, the .getvalue method returns None username = fields.getvalue('username') password = fields.getvalue('password') hostname = fields.getvalue('hostname') myip = fields.getvalue('myip') +wildcard = fields.getvalue('wildcard') +mx = fields.getvalue('mx') +backmx = fields.getvalue('backmx') +offline = fields.getvalue('offline') + # Strip zone hostname = hostname.strip()