From 572986d63775ecd1be7e23957be347364e16ba25 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Wed, 5 Mar 2014 22:53:21 +0100 Subject: [PATCH] Added possible URL parameters wildcard, mx, backmx and offline. They are not used yet. --- cgi-bin/dyndns.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.39.5