fix(ipregion): replace restcountries with apicountries
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run

This commit is contained in:
Nikita Skryabin 2026-06-14 16:05:44 +03:00
parent f4b4f27d9e
commit 45ba0311ef

View file

@ -1731,9 +1731,9 @@ lookup_gemini_supported() {
return
fi
country_name=$(curl_wrapper GET "https://restcountries.com/v3.1/alpha/${country_code}?fields=name" \
country_name=$(curl_wrapper GET "https://www.apicountries.com/alpha/${country_code}" \
--ip-version "4")
country_name=$(process_json "$country_name" ".name.common")
country_name=$(process_json "$country_name" ".name")
if [[ -z "$country_name" || "$country_name" == "null" ]]; then
echo ""