From cf862c5d06a8a97bb978b67ea0e6b1527ac19bb5 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 20 Oct 2022 07:38:33 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eupdate=5Fblocklist.sh=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_blocklist.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/update_blocklist.sh b/update_blocklist.sh index a8b05b9..9322022 100644 --- a/update_blocklist.sh +++ b/update_blocklist.sh @@ -257,16 +257,16 @@ while read BLOCKED_IP ; do # is not in the database request_GeoIP_result="empty" fi - fi - if [ "$useGeoIP" = blockonly ] && echo "${countries[@]}" | grep -qiv "$request_GeoIP_result" ; then - let skipByGeoIP=$skipByGeoIP+1 - [ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result" - continue - elif [ "$useGeoIP" = blockother ] && echo "${countries[@]}" | grep -qi "$request_GeoIP_result" ; then - let skipByGeoIP=$skipByGeoIP+1 - [ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result" - continue + if [ "$useGeoIP" = blockonly ] && echo "${countries[@]}" | grep -qiv "$request_GeoIP_result" ; then + let skipByGeoIP=$skipByGeoIP+1 + [ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result" + continue + elif [ "$useGeoIP" = blockother ] && echo "${countries[@]}" | grep -qi "$request_GeoIP_result" ; then + let skipByGeoIP=$skipByGeoIP+1 + [ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result" + continue + fi fi # prepare sql statement