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

This commit is contained in:
Franco Fichtner 2016-01-26 18:06:41 +01:00
parent 9defc2f444
commit 9ae707fea0

View File

@ -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'] . " ";
}