HTTP_X_FORWARDED_FOR support.

This commit is contained in:
Stefan Midjich 2016-04-17 00:24:34 +02:00
parent 4f0719ffe0
commit a340f447a3
1 changed files with 3 additions and 1 deletions

View File

@ -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