src/Whip.php
public function getValidIpAddress($source = null)
    {
        $ipAddress = $this->getIpAddress($source);
        if (false === $ipAddress || false === @inet_pton($ipAddress)) {
            return false;
        }
        return $ipAddress;
    }
public function getValidIpAddress($source = null)
    {
        $ipAddress = $this->getIpAddress($source);
        if (false === $ipAddress || false === @inet_pton($ipAddress)) {
            return false;
        }
        return $ipAddress;
    }
public function getValidIpAddress ( $ source = null ) { $ ipAddress = $ this -> getIpAddress ( $ source ) ; if ( false === $ ipAddress || false === @ inet_pton ( $ ipAddress ) ) { return false ; } return $ ipAddress ; }
Returns the valid IP address or false if no valid IP address was found.
@param mixed $source (optional) The source data. If omitted, the class
will use the value passed to Whip::setSource or fallback to
$_SERVER.
@return string|false Returns the IP address (as a string) of the client or false
if no valid IP address was found.
Returns the valid IP address or false if no valid IP address was found .