mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Simplify "isset($rule['l7container']) and ..." as its already evaluated
above and sets $l7present.
This commit is contained in:
parent
06e2a55d70
commit
cfcaabfb60
@ -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 ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user