summaryrefslogtreecommitdiffstats
path: root/module/web/cnl
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/cnl')
-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()