summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-17 00:52:08 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-17 00:52:08 +0000
commitda9b711a2e3d2fdfaa095d2a43277da2d81240e6 (patch)
tree28f541dba8cacf7a9f3b2c57d7635d98963ffdbe /etc
parent397e13cd6c3623a6339b4466d779453d608ab8df (diff)
downloadpfsense-da9b711a2e3d2fdfaa095d2a43277da2d81240e6.zip
pfsense-da9b711a2e3d2fdfaa095d2a43277da2d81240e6.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index f12ca25..7125f6c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -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']} ";
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud