Commit b6a326b6 authored by Ad Schellevis's avatar Ad Schellevis

(filter) alias range fix, apparently the ranges where unfunctional before...

(filter) alias range fix, apparently the ranges where unfunctional before refactoring filter_expand_aliases()
parent 03170898
......@@ -752,6 +752,12 @@ function filter_expand_aliases($aliasname=null, $maxdepth=10, $depth=0)
&& !is_port($address) && !is_portrange($address) && is_hostname($address)
&& in_array($aliased['type'], array('host'))) {
$response[$aliased['name']]['hostnames'][] = $address;
} elseif (strpos($address, '-') !== false || strpos($address, ':') !== false) {
$tmp = preg_split("/[:-]+/", $address);
$response[$aliased['name']]['addresses'] = array_merge(
$response[$aliased['name']]['addresses'],
ip_range_to_subnet_array($tmp[0], $tmp[1])
);
} else {
$response[$aliased['name']]['addresses'][] = $address;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment