fixed typo, thank you Philipp Storz
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.4-stable+timestamp.2013.03.15.09.46.12
|
Version 2.4.4-stable+timestamp.2013.03.15.09.49.00
|
||||||
|
|||||||
+1
-1
@@ -131,7 +131,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', ''))
|
||||||
client = (g.group() or '').split(',')[0] if g else None
|
client = (g.group() or '').split(',')[0] if g else None
|
||||||
if client in (None, '', 'unkown'):
|
if client in (None, '', 'unknown'):
|
||||||
g = regex_client.search(env.get('remote_addr', ''))
|
g = regex_client.search(env.get('remote_addr', ''))
|
||||||
if g:
|
if g:
|
||||||
client = g.group()
|
client = g.group()
|
||||||
|
|||||||
Reference in New Issue
Block a user