diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-04-03 11:06:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-04-03 11:06:18 +0200 |
commit | 44941dd9b11d9140589f7b1eacb9baf2a82d4c8b (patch) | |
tree | dd5c3ea532746bb6eae3ff9b7991165b6e5254af /module/web/cnl/views.py | |
parent | merged (diff) | |
download | pyload-44941dd9b11d9140589f7b1eacb9baf2a82d4c8b.tar.xz |
webif settings page
Diffstat (limited to 'module/web/cnl/views.py')
-rw-r--r-- | module/web/cnl/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/cnl/views.py b/module/web/cnl/views.py index aeb6174a7..69a2ce4e8 100644 --- a/module/web/cnl/views.py +++ b/module/web/cnl/views.py @@ -19,7 +19,7 @@ except: def local_check(function): def _dec(view_func): def _view(request, * args, ** kwargs): - if request.META['REMOTE_ADDR'] == '127.0.0.1' or request.META['REMOTE_ADDR'] == 'localhost': + if request.META.get('REMOTE_ADDR', "0") in ('127.0.0.1','localhost') or request.META.get('HTTP_HOST','0') == '127.0.0.1:9666': return view_func(request, * args, ** kwargs) else: return HttpResponseServerError() |