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