Work around an interesting bug when using not in rules by expanding the alias value since we cannot add the ! directive into the already defined aliases at the top which already have { } surrounding it
This commit is contained in:
Scott Ullrich 2005-12-17 00:52:08 +00:00
parent 397e13cd6c
commit da9b711a2e

View File

@ -1121,7 +1121,7 @@ function generate_user_filter_rule($rule, $ngcounter) {
$not = "";
if (stristr($expsrc, "$"))
$src = "{$not} {$expsrc}";
$src = "{$not} " . alias_expand_value($rule['source']['address']);
else
$src = "{ {$not} {$expsrc} }";
}
@ -1198,7 +1198,7 @@ function generate_user_filter_rule($rule, $ngcounter) {
$not = "";
if (stristr($expdst, "$"))
$dst = "{$not} {$expdst}";
$dst = "{$not} " . alias_expand_value($rule['destination']['address']);
else
$dst = "{ {$not} {$expdst} }";
}
@ -2139,4 +2139,4 @@ function return_vpn_subnet($adr) {
return " # error - {$adr['network']} ";
}
?>
?>