„update_blocklist.sh“ ändern

This commit is contained in:
Stephan 2022-10-20 07:38:33 +00:00
parent 12114dd705
commit cf862c5d06

View file

@ -257,7 +257,6 @@ while read BLOCKED_IP ; do
# is not in the database # is not in the database
request_GeoIP_result="empty" request_GeoIP_result="empty"
fi fi
fi
if [ "$useGeoIP" = blockonly ] && echo "${countries[@]}" | grep -qiv "$request_GeoIP_result" ; then if [ "$useGeoIP" = blockonly ] && echo "${countries[@]}" | grep -qiv "$request_GeoIP_result" ; then
let skipByGeoIP=$skipByGeoIP+1 let skipByGeoIP=$skipByGeoIP+1
@ -268,6 +267,7 @@ while read BLOCKED_IP ; do
[ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result" [ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result"
continue continue
fi fi
fi
# prepare sql statement # prepare sql statement
if [[ "$VALID_IPv4" -eq 1 ]]; then if [[ "$VALID_IPv4" -eq 1 ]]; then