HTTP_X_FORWARDED_FOR support.

This commit is contained in:
Stefan Midjich 2016-04-17 00:24:34 +02:00
parent 4f0719ffe0
commit a340f447a3

View file

@ -21,7 +21,9 @@ def run(arg):
) )
log_client = '{client_ip}'.format( 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 # Log a msg