mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Quick fix for parsing of proxy headers
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user