public function match($value)
 {
     try {
         $address = \IpUtils\Factory::getAddress($value);
         return $this->_subnet->matches($address);
     } catch (\Exception $e) {
         unset($e);
         return false;
     }
 }
Exemple #2
0
 /**
  * check whether the address matches a given pattern/range
  *
  * @param  ExpressionInterface $expression
  * @return boolean
  */
 public function matches(ExpressionInterface $expression)
 {
     return $expression->matches($this);
 }