Mercurial > hg > maltfilter
changeset 57:a70493b6c916
Clear %statlist and %ignorelist when re-initializing (due to HUP), so we don't count stats twice.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 16 Aug 2009 22:14:48 +0300 |
parents | e81bca155440 |
children | a780a23e19a8 |
files | README maltfilter |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/README Sun Aug 16 17:18:02 2009 +0300 +++ b/README Sun Aug 16 22:14:48 2009 +0300 @@ -1,4 +1,4 @@ -Malicious Attack Livid Termination Filter daemon (maltfilter) v0.13.0 +Malicious Attack Livid Termination Filter daemon (maltfilter) v0.13.1 ===================================================================== Programmed by Matti 'ccr' Hämäläinen <ccr@tnsp.org> (C) Copyright 2009 Tecnic Software productions (TNSP)
--- a/maltfilter Sun Aug 16 17:18:02 2009 +0300 +++ b/maltfilter Sun Aug 16 22:14:48 2009 +0300 @@ -10,7 +10,7 @@ use Date::Parse; use Net::IP; -my $progversion = "0.13.0"; +my $progversion = "0.13.1"; my $progbanner = "Malicious Attack Livid Termination Filter daemon (maltfilter) v$progversion\n". "Programmed by Matti 'ccr' Hamalainen <ccr\@tnsp.org>\n". @@ -730,6 +730,13 @@ ### Initialize sub malt_init { + %statlist = (); + undef(%statlist); + %ignorelist = (); + undef(%ignorelist); + mlog(0, "Updating initial blocklist from netfilter.\n"); + update_blocklist(-1); + foreach my $filename (@scanfiles_once) { mlog(0, "Parsing [once] ".$filename." ...\n"); if (open(INFILE, "<", $filename)) { @@ -990,8 +997,6 @@ } # Initialize -mlog(0, "Updating initial blocklist from netfilter.\n"); -update_blocklist(-1); malt_init(); # Fork to background, unless dry-running