fixed issue 1028, thanks Sherdim
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.0.9 (2012-09-24 11:50:52) stable
|
||||
Version 2.0.9 (2012-09-24 11:59:51) stable
|
||||
|
||||
@@ -132,7 +132,7 @@ def get_client(env):
|
||||
"""
|
||||
g = regex_client.search(env.get('http_x_forwarded_for', ''))
|
||||
if g:
|
||||
client = g.group()
|
||||
client = (g.group() or '').split(',')[0]
|
||||
else:
|
||||
g = regex_client.search(env.get('remote_addr', ''))
|
||||
if g:
|
||||
|
||||
Reference in New Issue
Block a user