From a7b55b360681c465204281871e7bd1cd0d175216 Mon Sep 17 00:00:00 2001 From: Markus Schmidt Date: Wed, 13 Oct 2021 16:48:58 +0200 Subject: [PATCH] Changed https problems --- controllers/appadmin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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: