*/
class IP {
/** @var IPSet */
- private static $ipSet = null;
+ private static $proxyIpSet = null;
/**
* Determine if a string is as valid IP address or network (CIDR prefix).
// Check against addresses and CIDR nets in the NoPurge list
if ( !$trusted ) {
- if ( !self::$ipSet ) {
- self::$ipSet = new IPSet( $wgSquidServersNoPurge );
+ if ( !self::$proxyIpSet ) {
+ self::$proxyIpSet = new IPSet( $wgSquidServersNoPurge );
}
- $trusted = self::$ipSet->match( $ip );
+ $trusted = self::$proxyIpSet->match( $ip );
}
wfProfileOut( __METHOD__ );
* Use this only for unit tests.
*/
public static function clearCaches() {
- self::$ipSet = null;
+ self::$proxyIpSet = null;
}
}