* Image namespace and accompanying talk namespace renamed to File. For backward
compatibility purposes, Image still works. External tools may need to be
updated.
+* MediaWiki can be forced to use private IPs forwarded by a proxy server by
+ using $wgUsePrivateIPs.
=== Migrated extensions ===
The following extensions are migrated into MediaWiki 1.14:
# $wgHTCPMulticastAddress = "224.0.0.85";
$wgHTCPMulticastAddress = false;
+/** Should forwarded Private IPs be accepted? */
+$wgUsePrivateIPs = false;
+
# Cookie settings:
#
/**
* @return string
*/
function wfGetIP() {
- global $wgIP;
+ global $wgIP, $wgUsePrivateIPs;
# Return cached result
if ( !empty( $wgIP ) ) {
foreach ( $ipchain as $i => $curIP ) {
$curIP = IP::canonicalize( $curIP );
if ( wfIsTrustedProxy( $curIP ) ) {
- if ( isset( $ipchain[$i + 1] ) && IP::isPublic( $ipchain[$i + 1] ) ) {
- $ip = $ipchain[$i + 1];
+ if ( isset( $ipchain[$i + 1] ) ) {
+ if( $wgUsePrivateIPs || IP::isPublic( $ipchain[$i + 1 ] ) ) {
+ $ip = $ipchain[$i + 1];
+ }
}
} else {
break;