summaryrefslogtreecommitdiffstats
path: root/module/web/cnl/views.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-03 11:06:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-03 11:06:18 +0200
commit44941dd9b11d9140589f7b1eacb9baf2a82d4c8b (patch)
treedd5c3ea532746bb6eae3ff9b7991165b6e5254af /module/web/cnl/views.py
parentmerged (diff)
downloadpyload-44941dd9b11d9140589f7b1eacb9baf2a82d4c8b.tar.xz
webif settings page
Diffstat (limited to 'module/web/cnl/views.py')
-rw-r--r--module/web/cnl/views.py2
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()