mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
MFC 8487
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:
parent
397e13cd6c
commit
da9b711a2e
@ -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']} ";
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user