log date and ip on failure

This commit is contained in:
sceox 2020-09-06 11:23:37 -07:00
parent 20bbc771b6
commit 4312d75e27

View File

@ -24,7 +24,7 @@ if [ "$freq" -ge 1 ]; then
rm $repl
exit 0
else
echo error failed to add ufw rule >> $logf
echo `date` "error failed to block ip $ip" >> $logf
rm $repl
exit 2
fi