fixed issue 1028, thanks Sherdim

This commit is contained in:
mdipierro
2012-09-24 11:59:57 -05:00
parent 823dbdfcc1
commit bcb6e477cf
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.0.9 (2012-09-24 11:50:52) stable
Version 2.0.9 (2012-09-24 11:59:51) stable

View File

@@ -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: