Page MenuHomePhabricator

squid-header.diff

Authored By
bzimport
Nov 21 2014, 8:42 PM
Size
576 B
Referenced Files
None
Subscribers
None

squid-header.diff

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1759
Default Alt Text
squid-header.diff (576 B)

Event Timeline