Changed: appadmin to work without https

This commit is contained in:
Markus Schmidt 2021-10-13 16:36:31 +02:00
parent 74d87a1594
commit 19e0d95b51

View File

@ -33,9 +33,9 @@ if request.is_https:
elif request.env.trusted_lan_prefix and \ elif request.env.trusted_lan_prefix and \
remote_addr.startswith(request.env.trusted_lan_prefix): remote_addr.startswith(request.env.trusted_lan_prefix):
request.is_local = True request.is_local = True
elif (remote_addr not in hosts) and (remote_addr != '127.0.0.1') and \ # elif (remote_addr not in hosts) and (remote_addr != '127.0.0.1') and \
(request.function != 'manage'): # (request.function != 'manage'):
raise HTTP(200, T('appadmin is disabled because insecure channel')) # raise HTTP(200, T('appadmin is disabled because insecure channel'))
if request.function == 'manage': if request.function == 'manage':
if not 'auth' in globals() or not request.args: if not 'auth' in globals() or not request.args: