diff options
Diffstat (limited to 'ddns/frontend')
-rw-r--r-- | ddns/frontend/dyn_com.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ddns/frontend/dyn_com.py b/ddns/frontend/dyn_com.py index 5ef6e11..9b803ec 100644 --- a/ddns/frontend/dyn_com.py +++ b/ddns/frontend/dyn_com.py @@ -18,6 +18,9 @@ def dyn_com(): if not request.args.has_key('myip'): return "nohost" + if len(request.args.getlist('myip')) != 1: + return "nohost" + hostname = request.args.get('hostname') if not '.' in hostname: return "notfqdn" @@ -43,5 +46,6 @@ def dyn_com(): # We should probably check something here... return "good" return auth.authenticate("!yours") - return "nohost" - return "nohost" + return "nohost2" + raise RuntimeError("ooops") + return "nohost1" |