diff --git a/interface/lib/classes/validate_domain.inc.php b/interface/lib/classes/validate_domain.inc.php index 01293abd6dee259d722f64417c4bc311129bf935..1e5351a82369ab6c8c8b1f78f653da846aa9fc49 100644 --- a/interface/lib/classes/validate_domain.inc.php +++ b/interface/lib/classes/validate_domain.inc.php @@ -79,7 +79,7 @@ class validate_domain { // do not allow wildcards on alias domains $result = $this->_regex_validate($field_value); - if(!$result) return $this->get_error('domain_error_regex'); + if(!$result && !filter_var($field_value, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) return $this->get_error('domain_error_regex'); $result = $this->_check_unique($field_value); if(!$result) return $this->get_error('domain_error_unique');