diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-20 00:15:43 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-20 00:15:43 +0100 |
commit | 5f1d64d9b6ef0d5c1c8a3fabbf6139e1a2a6d2b4 (patch) | |
tree | a533eaaf428198414ff9a92846bd3ac3cdaa90d1 /module | |
parent | parallel dl limit for hoster (diff) | |
download | pyload-5f1d64d9b6ef0d5c1c8a3fabbf6139e1a2a6d2b4.tar.xz |
fix cnl for localhost domain
Diffstat (limited to 'module')
-rw-r--r-- | module/web/cnl_app.py | 2 |
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") |