summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/filter.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 5104554..9a0f372 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1552,8 +1552,8 @@ function generate_user_filter_rule($rule, $ngcounter) {
$dst = "$ppoesa/$pppoesn";
break;
}
+ if (isset($rule['destination']['not'])) $dst = " !" . $dst;
}
- if (isset($rule['destination']['not'])) $dst = " !" . $dst;
} else if ($rule['destination']['address']) {
$not = "";
if (isset($rule['destination']['not'])) $not = "! ";
@@ -2451,4 +2451,4 @@ function return_vpn_subnet($adr) {
return " # error - {$adr['network']} ";
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud