src/Charcoal/App/Middleware/IpMiddleware.php
private function isIpWhitelisted($ip)
    {
        if (empty($this->whitelist)) {
            return true;
        }
        return $this->isIpInRange($ip, $this->whitelist);
    }
private function isIpWhitelisted($ip)
    {
        if (empty($this->whitelist)) {
            return true;
        }
        return $this->isIpInRange($ip, $this->whitelist);
    }
private function isIpWhitelisted ( $ ip ) { if ( empty ( $ this -> whitelist ) ) { return true ; } return $ this -> isIpInRange ( $ ip , $ this -> whitelist ) ; }
Check wether a certain IP is explicitely whitelisted.

If the whitelist is null or empty, then all IPs are whitelisted (return true).

Note; This method only performs an exact string match on IP address, no IP masking / range features.

@param string $ip The IP address to check against the whitelist.
@return boolean
Check wether a certain IP is explicitely whitelisted .