Quick fix for parsing of proxy headers

This commit is contained in:
Jeremy Edberg
2009-04-02 13:25:52 -07:00
parent becec7ad24
commit f45011496f
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ class BaseController(WSGIController):
== ip_hash.lower()):
request.ip = true_client_ip
elif remote_addr == g.proxy_addr and forwarded_for:
request.ip = forwarded_for.split(',')[0]
request.ip = forwarded_for.split(',')[-1]
else:
request.ip = environ['REMOTE_ADDR']

View File

@@ -780,7 +780,7 @@ a.star { text-decoration: none; color: #ff8b60 }
.linkcompressed .entry .buttons li.first {padding-left: .5em;}
.linkcompressed .entry .buttons li a {
padding: 0 2px;
background-color: #f0f0f0;
background-color: #f1f1f1;
font-weight: bold
}