mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-09-18 23:14:48 +08:00
feat: Add IPQuery.io as additional comparison source for the country code (#1006)
This commit is contained in:
parent
10466d7851
commit
a7e229aaae
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user