34 private $proxyServers;
37 private $proxyServersComplex;
55 $this->proxyServers = $proxyServers;
56 $this->proxyServersComplex = $proxyServersComplex;
57 $this->hookRunner =
new HookRunner( $hookContainer );
68 if ( in_array( $ip, $this->proxyServers,
true ) ) {
73 if ( !$this->proxyIPSet ) {
74 $this->proxyIPSet =
new IPSet( $this->proxyServersComplex );
76 return $this->proxyIPSet->match( $ip );
89 $this->hookRunner->onIsTrustedProxy( $ip, $trusted );
95class_alias( ProxyLookup::class,
'ProxyLookup' );