mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
HTTP_X_FORWARDED_FOR support.
This commit is contained in:
parent
4f0719ffe0
commit
a340f447a3
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue