feat: Add IPQuery.io as additional comparison source for the country code (#1006)

This commit is contained in:
xrh0905 2025-09-17 23:55:54 +08:00 committed by GitHub
parent 10466d7851
commit a7e229aaae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,6 +160,7 @@ setCountry() {
[ -z "$COUNTRY" ] && getCountry "https://ifconfig.co/json" ".country_iso"
[ -z "$COUNTRY" ] && getCountry "https://api.ip2location.io" ".country_code"
[ -z "$COUNTRY" ] && getCountry "https://ipinfo.io/json" ".country"
[ -z "$COUNTRY" ] && getCountry "https://api.ipquery.io/?format=json" ".location.country_code"
[ -z "$COUNTRY" ] && getCountry "https://api.myip.com" ".cc"
return 0