Commit f395be0b authored by Franco Fichtner's avatar Franco Fichtner

filter: no way to trigger source-track from GUI -> purged

(cherry picked from commit 9ae707fe)
parent b8b15889
......@@ -2675,8 +2675,7 @@ function filter_generate_user_rule(&$FilterIflist, $rule)
}
if ($noadvoptions == false) {
if ((isset($rule['source-track']) and $rule['source-track'] <> "") or
(isset($rule['max']) and $rule['max'] <> "") or
if ((isset($rule['max']) and $rule['max'] <> "") or
(isset($rule['max-src-nodes']) and $rule['max-src-nodes'] <> "") or
(isset($rule['max-src-states']) and $rule['max-src-states'] <> "") or
((isset($rule['protocol']) && in_array($rule['protocol'], array("tcp","tcp/udp"))) and
......@@ -2692,9 +2691,6 @@ function filter_generate_user_rule(&$FilterIflist, $rule)
if (isset($rule['nopfsync'])) {
$aline['flags'] .= "no-sync ";
}
if (isset($rule['source-track']) and $rule['source-track'] <> "") {
$aline['flags'] .= "source-track rule ";
}
if (isset($rule['max']) and $rule['max'] <> "") {
$aline['flags'] .= "max " . $rule['max'] . " ";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment