Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2182
squid-header.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:42 PM
2014-11-21 20:42:09 (UTC+0)
Size
576 B
Referenced Files
None
Subscribers
None
squid-header.diff
View Options
--- ProxyTools.php.orig 2005-07-05 17:22:10.000000000 -0400
+++ ProxyTools.php 2005-07-14 09:19:24.000000000 -0400
@@ -14,7 +14,9 @@
/* collect the originating ips */
# Client connecting to this webserver
- if ( isset( $_SERVER['REMOTE_ADDR'] ) ) {
+ if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
+ $ipchain = array( $_SERVER['HTTP_X_FORWARDED_FOR'] );
+ } else if ( isset( $_SERVER['REMOTE_ADDR'] ) ) {
$ipchain = array( $_SERVER['REMOTE_ADDR'] );
} else {
# Running on CLI?
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1759
Default Alt Text
squid-header.diff (576 B)
Attached To
Mode
T4856: Squid HTTP_X_FORWARDED_FOR header not respected
Attached
Detach File
Event Timeline
Log In to Comment