summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-04-12 12:10:10 +1200
committerthompsa <andy@fud.org.nz>2010-04-12 12:10:10 +1200
commitcfcaabfb608758071b065754b6bf53cb131af22a (patch)
treef56ac0c8c0fa130b1c51b83fba81bcfcb381de2e
parent06e2a55d701f750997061086f0c8879bad9d0e24 (diff)
downloadpfsense-cfcaabfb608758071b065754b6bf53cb131af22a.zip
pfsense-cfcaabfb608758071b065754b6bf53cb131af22a.tar.gz
Simplify "isset($rule['l7container']) and ..." as its already evaluated
above and sets $l7present.
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 91ccb91..9f52c9e 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1574,7 +1574,7 @@ function filter_generate_user_rule($rule) {
isset($rule['max-src-conn-rates']) and $rule['max-src-conn-rates'] <> "" or
isset($rule['max-src-states']) and $rule['max-src-states'] <> "" or
isset($rule['statetimeout']) and $rule['statetimeout'] <> "" or
- isset($rule['l7container']) and $rule['l7container'] != "none") {
+ $l7_present) {
$aline['flags'] .= "( ";
if(isset($rule['source-track']) and $rule['source-track'] <> "")
$aline['flags'] .= "source-track rule ";
OpenPOWER on IntegriCloud