Skip to content

Commit

Permalink
Consider url_port alias type when checking port-type aliases V2
Browse files Browse the repository at this point in the history
This time I have typed url_ports correctly.
  • Loading branch information
Phil Davis authored and rbgarga committed Jul 27, 2015
1 parent 2da055f commit 8e24ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/inc/filter.inc
Expand Up @@ -640,7 +640,7 @@ function filter_generate_nested_alias($name, $alias, &$aliasnesting, &$aliasaddr
$tmpline = filter_generate_nested_alias($name, $aliastable[$address], $aliasnesting, $aliasaddrnesting);
}
} else if (!isset($aliasaddrnesting[$address])) {
if (!is_ipaddr($address) && !is_subnet($address) && !(($alias_type == 'port') && (is_port($address) || is_portrange($address))) && is_hostname($address)) {
if (!is_ipaddr($address) && !is_subnet($address) && !((($alias_type == 'port') || ($alias_type == 'url_ports')) && (is_port($address) || is_portrange($address))) && is_hostname($address)) {
if (!isset($filterdns["{$address}{$name}"])) {
$use_filterdns = true;
$filterdns["{$address}{$name}"] = "pf {$address} {$name}\n";
Expand Down

0 comments on commit 8e24ffd

Please sign in to comment.