protected function getTrustedForwardedIp(array $ips)
    {
        if (is_string($this->trustedProxy)) {
            foreach ($ips as $ip) {
                if (\Jasny\ip_in_cidr($ip, $this->trustedProxy)) {
                    continue;
                }
                return $ip;
            }
        }
        
        return end($ips);
    }
protected function getTrustedForwardedIp(array $ips)
    {
        if (is_string($this->trustedProxy)) {
            foreach ($ips as $ip) {
                if (\Jasny\ip_in_cidr($ip, $this->trustedProxy)) {
                    continue;
                }
                return $ip;
            }
        }
        
        return end($ips);
    }
protected function getTrustedForwardedIp ( array $ ips ) { if ( is_string ( $ this -> trustedProxy ) ) { foreach ( $ ips as $ ip ) { if ( \ Jasny \ ip_in_cidr ( $ ip , $ this -> trustedProxy ) ) { continue ; } return $ ip ; } } return end ( $ ips ) ; }
Select an IP which is within the list of trusted ips

@param array $ips
@return string
Select an IP which is within the list of trusted ips