Changed: appadmin to work without https
This commit is contained in:
parent
74d87a1594
commit
19e0d95b51
@ -33,9 +33,9 @@ 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'))
|
||||
|
||||
if request.function == 'manage':
|
||||
if not 'auth' in globals() or not request.args:
|
||||
|
Loading…
Reference in New Issue
Block a user