HTTP_X_FORWARDED_FOR support.
This commit is contained in:
parent
4f0719ffe0
commit
a340f447a3
|
@ -21,7 +21,9 @@ def run(arg):
|
|||
)
|
||||
|
||||
log_client = '{client_ip}'.format(
|
||||
client_ip=environ.get('REMOTE_ADDR')
|
||||
client_ip=environ.get(
|
||||
'HTTP_X_FORWARDED_FOR',
|
||||
environ.get('REMOTE_ADDR')
|
||||
)
|
||||
|
||||
# Log a msg
|
||||
|
|
Loading…
Reference in New Issue