diff options
-rwxr-xr-x | config/snort/snort.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index de0ac58f..9f122d7d 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -1739,7 +1739,8 @@ function snort_prepare_rule_files($snortcfg, $snortcfgdir) { $tmpfile = basename($file); if (in_array("{$snortdir}/rules/{$tmpfile}", $enabled_files)) continue; - if (basename($tmpfile, ".rules") != "custom") + if ($tmpfile != "custom.rules" && $tmpfile != $flowbit_rules_file && + $tmpfile != $snort_enforcing_rules_file) @unlink($file); } |