src/ClientIp.php
public function proxy(
        array $ips = [],
        array $headers = [
            'Forwarded',
            'Forwarded-For',
            'X-Forwarded',
            'X-Forwarded-For',
            'X-Cluster-Client-Ip',
            'Client-Ip',
        ]
    ): self {
        $this->proxyIps = $ips;
        $this->proxyHeaders = $headers;

        return $this;
    }
public function proxy(
        array $ips = [],
        array $headers = [
            'Forwarded',
            'Forwarded-For',
            'X-Forwarded',
            'X-Forwarded-For',
            'X-Cluster-Client-Ip',
            'Client-Ip',
        ]
    ): self {
        $this->proxyIps = $ips;
        $this->proxyHeaders = $headers;

        return $this;
    }
public function proxy ( array $ ips = [ ] , array $ headers = [ 'Forwarded' , 'Forwarded-For' , 'X-Forwarded' , 'X-Forwarded-For' , 'X-Cluster-Client-Ip' , 'Client-Ip' , ] ) : self { $ this -> proxyIps = $ ips ; $ this -> proxyHeaders = $ headers ; return $ this ; }
Configure the proxy.
Configure the proxy .