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
c95ee14de9
commit
4f0719ffe0
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,10 @@ def run(arg):
|
|||
l.addHandler(logHandler)
|
||||
l.setLevel(DEBUG)
|
||||
|
||||
client_ip = environ.get('REMOTE_ADDR')
|
||||
client_ip = environ.get(
|
||||
'HTTP_X_FORWARDED_FOR',
|
||||
environ.get('REMOTE_ADDR')
|
||||
)
|
||||
client_mac = None
|
||||
error_msg = None
|
||||
iptables_failed = False
|
||||
|
|
Loading…
Reference in a new issue