]> git.ipfire.org Git - ipfire-2.x.git/commit
ids-functions.pl: Rework function write_modify_sids_file().
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 5 Jun 2019 18:56:33 +0000 (20:56 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Jun 2019 11:41:49 +0000 (12:41 +0100)
commit81bae51f6102a555ba50a5d42ed433288ddcfe54
tree9844c58bea9b6f46f713103f4f85a9a92313787e
parenta40bcbb02cf1012405c4a0507d4b54d4d8a45064
ids-functions.pl: Rework function write_modify_sids_file().

Directly implement the logic to determine the used ruleset and if
IDS or IPS mode should be used into the function instead of pass those
details as arguments.

This helps to prevent from doing this stuff at several places again and again.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/ids-functions.pl
html/cgi-bin/ids.cgi