diff --git a/controllers/appadmin.py b/controllers/appadmin.py index 0a3d536..ed805ac 100644 --- a/controllers/appadmin.py +++ b/controllers/appadmin.py @@ -33,9 +33,10 @@ if request.is_https: elif request.env.trusted_lan_prefix and \ remote_addr.startswith(request.env.trusted_lan_prefix): request.is_local = True -# elif (remote_addr not in hosts) and (remote_addr != '127.0.0.1') and \ -# (request.function != 'manage'): -# raise HTTP(200, T('appadmin is disabled because insecure channel')) +elif (remote_addr not in hosts) and (remote_addr != '127.0.0.1') and \ + (request.function != 'manage'): + # raise HTTP(200, T('appadmin is disabled because insecure channel')) + request.is_local = True if request.function == 'manage': if not 'auth' in globals() or not request.args: