Symfony\Component\HttpFoundation\Request::isFromTrustedProxy PHP 메소드

isFromTrustedProxy() 공개 메소드

This can be useful to determine whether or not to trust the contents of a proxy-specific header.
public isFromTrustedProxy ( ) : boolean
리턴 boolean true if the request came from a trusted proxy, false otherwise
    public function isFromTrustedProxy()
    {
        return self::$trustedProxies && IpUtils::checkIp($this->server->get('REMOTE_ADDR'), self::$trustedProxies);
    }