fix for whitelisting IPs from custom function

This commit is contained in:
Costa Tsaousis (ktsaou) 2015-05-22 13:00:41 +03:00
parent 30de402230
commit 2351ee4297

@ -721,7 +721,7 @@ blacklist() {
blacklist_check ${counter} ${ip} ${tscore} "${@}"
if [ $? -ne 0 ]
then
local d=$[tscore - 1 - BLACKLIST_SCORE]
local d=$[tscore + 1 - BLACKLIST_SCORE]
tscore=$[tscore - d]
comment="score ${tscore} from custom check $[-d] and ${counter} lists:${*}"
fi