Fix double ip in generated score
This commit is contained in:
parent
56326f1dcf
commit
35cb77c398
@ -217,6 +217,10 @@ def get_file():
|
||||
else:
|
||||
userip = request.environ['HTTP_X_FORWARDED_FOR'] # if behind a proxy
|
||||
|
||||
# Proxy might add multiple ips, take only one:
|
||||
if ',' in userip:
|
||||
userip = userip.split(',')[0]
|
||||
|
||||
# CALCULATION OF INITIAL TIME BEFORE FIRST CLICK
|
||||
if len(timelist) and not (timelist[0] is None):
|
||||
thetime = timelist[0]
|
||||
|
Loading…
Reference in New Issue
Block a user