„update_blocklist.sh“ ändern
This commit is contained in:
parent
cf862c5d06
commit
5751553cd1
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ while read BLOCKED_IP ; do
|
||||||
# check GeoIP
|
# check GeoIP
|
||||||
if [ "$useGeoIP" = blockonly ] || [ "$useGeoIP" = blockother ]; then
|
if [ "$useGeoIP" = blockonly ] || [ "$useGeoIP" = blockother ]; then
|
||||||
request_GeoIP_result="$(request_GeoIP "$BLOCKED_IP")"
|
request_GeoIP_result="$(request_GeoIP "$BLOCKED_IP")"
|
||||||
|
|
||||||
if grep -qi "is not in the database" <<<"$request_GeoIP_result" ; then
|
if grep -qi "is not in the database" <<<"$request_GeoIP_result" ; then
|
||||||
# is not in the database
|
# is not in the database
|
||||||
request_GeoIP_result="empty"
|
request_GeoIP_result="empty"
|
||||||
|
|
Loading…
Reference in a new issue