mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-30 04:30:49 +02:00
better
(cherry picked from commit 89ff26660f5bf0b54cdda0d519934f4d96f27be8)
This commit is contained in:
parent
2d2e9c4d8a
commit
de922fd7e4
@ -76,7 +76,7 @@ PROTO_ALL_BUT_HTTP=PROTO_MAIL.copy()
|
||||
PROTO_ALL_BUT_HTTP.extend(['443'])
|
||||
PROTO_ALL=PROTO_ALL_BUT_HTTP.copy()
|
||||
PROTO_ALL.extend(['80'])
|
||||
for item in args.get('PROXY_PROTOCOL', None).split(','):
|
||||
for item in args.get('PROXY_PROTOCOL', '').split(','):
|
||||
if item.isdigit():
|
||||
args[f'PROXY_PROTOCOL_{item}']=True
|
||||
elif item == 'mail':
|
||||
@ -85,6 +85,8 @@ for item in args.get('PROXY_PROTOCOL', None).split(','):
|
||||
for p in PROTO_ALL_BUT_HTTP: args[f'PROXY_PROTOCOL_{p}']=True
|
||||
elif item == 'all':
|
||||
for p in PROTO_ALL: args[f'PROXY_PROTOCOL_{p}']=True
|
||||
elif item == '':
|
||||
pass
|
||||
else:
|
||||
log.error(f'Not sure what to do with {item} in PROXY_PROTOCOL ({args.get("PROXY_PROTOCOL")})')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user