mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
filter: no way to trigger source-track from GUI -> purged
This commit is contained in:
parent
9defc2f444
commit
9ae707fea0
@ -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'] . " ";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user