diff options
author | thompsa <andy@fud.org.nz> | 2010-04-12 12:10:10 +1200 |
---|---|---|
committer | thompsa <andy@fud.org.nz> | 2010-04-12 12:10:10 +1200 |
commit | cfcaabfb608758071b065754b6bf53cb131af22a (patch) | |
tree | f56ac0c8c0fa130b1c51b83fba81bcfcb381de2e /etc/inc/filter.inc | |
parent | 06e2a55d701f750997061086f0c8879bad9d0e24 (diff) | |
download | pfsense-cfcaabfb608758071b065754b6bf53cb131af22a.zip pfsense-cfcaabfb608758071b065754b6bf53cb131af22a.tar.gz |
Simplify "isset($rule['l7container']) and ..." as its already evaluated
above and sets $l7present.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
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 "; |