https://bugzilla.wikimedia.org/show_bug.cgi?id=30739
--- Comment #2 from Carl Austin Bennett <[email protected]> 2011-09-06 22:17:59 UTC --- This is what Squid/Apache is feeding to ProxyTools.php::wfGetForwardedFor() Host=ipv6.example.org User-Agent=Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20100101 Firefox/6.0.1 Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language=en-GB,en;q=0.9,en-US;q=0.7,en-ca;q=0.6,fr-FR;q=0.4,fr;q=0.3,en;q=0.1 Accept-Encoding=gzip, deflate Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 Referer=http://ipv6.example.org/wiki/User:127.0.0.1 DNT=1 Pragma=no-cache Via=1.1 server.example.org (squid/3.1.15) X-Forwarded-For=2001:5c0:1000:a::133 Cache-Control=no-cache obtained by inserting a 'print' statement as: function wfGetForwardedFor() { if( function_exists( 'apache_request_headers' ) ) { // More reliable than $_SERVER due to case and -/_ folding $set = array (); foreach ( apache_request_headers() as $tempName => $tempValue ) { $set[ strtoupper( $tempName ) ] = $tempValue; print $tempName . "=" . $tempValue . ", \n"; } According to ProxyTools.php::wfGetIP() REMOTE_ADDR = 127.0.0.1 and, according to the config files, 127.0.0.1 is in $wgSquidServersNoPurge (as it must, or IPv4 traffic would also be in [[special:recentchanges]] as coming from localhost - and some random admin would've tried to ban the address by now) So, clearly $set['X-Forwarded-For'] = '2001:5c0:1000:a::133' is done in wfGetForwardedFor() and it's somewhere after this point that it doesn't like an IPv6 address. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
