From 03c992713c86b58a1f22993fb91d60b65082475c Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sun, 22 Sep 2024 16:54:32 +0200 Subject: [PATCH] add var for location of Geoblock Signed-off-by: Daniel Hansson --- lib.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib.sh b/lib.sh index d880bc3068..2927ac6e03 100644 --- a/lib.sh +++ b/lib.sh @@ -425,12 +425,14 @@ download_geoip_mmdb() { else docker rm -f maxmind rm -f /tmp/dockerenv - print_text_in_color "$ICyan" "Rate limit for Maxmind GeoDatabase reached! We're now trying to get the Country Database from https://ipinfo.io instead." - if ! curl -sfL https://ipinfo.io/data/free/country.mmdb?token="$x8v8GyVQg2UejdPh" -o "$GEOBLOCK_DIR"/GeoLite2-Country.mmdb - then - msg_box "Sorry, we couldn't get the needed IP geolocation database from any source, please try again in 24 hours." - return 1 - fi + msg_box "Update limit for Maxmind GeoDatabase reached! Please try again tomorrow." + return 1 + #print_text_in_color "$ICyan" "Rate limit for Maxmind GeoDatabase reached! We're now trying to get the Country Database from https://ipinfo.io instead." + #if ! curl -sfL https://ipinfo.io/data/free/country.mmdb?token="$x8v8GyVQg2UejdPh" -o "$GEOBLOCK_DIR"/GeoLite2-Country.mmdb + #then + # msg_box "Sorry, we couldn't get the needed IP geolocation database from any source, please try again in 24 hours." + # return 1 + #fi fi unset x8v8GyVQg2UejdPh }