Changed https problems

This commit is contained in:
Markus Schmidt 2021-10-13 16:48:58 +02:00
parent 00eda068d2
commit a7b55b3606

View File

@ -33,9 +33,10 @@ 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'))
request.is_local = True
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: