diff options
-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") |