mirror of
https://github.com/vernette/ipregion.git
synced 2026-10-15 17:28:22 +00:00
fix(ipregion): replace restcountries with apicountries
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run
This commit is contained in:
parent
f4b4f27d9e
commit
45ba0311ef
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue