summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-20 00:15:43 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-20 00:15:43 +0100
commit5f1d64d9b6ef0d5c1c8a3fabbf6139e1a2a6d2b4 (patch)
treea533eaaf428198414ff9a92846bd3ac3cdaa90d1 /module
parentparallel dl limit for hoster (diff)
downloadpyload-5f1d64d9b6ef0d5c1c8a3fabbf6139e1a2a6d2b4.tar.xz
fix cnl for localhost domain
Diffstat (limited to 'module')
-rw-r--r--module/web/cnl_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/cnl_app.py b/module/web/cnl_app.py
index d8f7c1180..fe308ec04 100644
--- a/module/web/cnl_app.py
+++ b/module/web/cnl_app.py
@@ -18,7 +18,7 @@ except:
def local_check(function):
def _view(*args, **kwargs):
if request.environ.get('REMOTE_ADDR', "0") in ('127.0.0.1', 'localhost') \
- or request.environ.get('HTTP_HOST','0') == '127.0.0.1:9666':
+ or request.environ.get('HTTP_HOST','0') in ('127.0.0.1:9666', 'localhost:9666'):
return function(*args, **kwargs)
else:
return HTTPError(403, "Forbidden")