mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
Clean up country code URL sources in run script
Removed unused URL sources for country code lookup.
This commit is contained in:
@@ -46,9 +46,7 @@ _fetch_country_code() {
|
|||||||
local urls=(
|
local urls=(
|
||||||
"https://ipapi.co/country/"
|
"https://ipapi.co/country/"
|
||||||
"http://ip-api.com/line/?fields=countryCode"
|
"http://ip-api.com/line/?fields=countryCode"
|
||||||
"https://ifconfig.co/country-iso"
|
|
||||||
"https://ipinfo.io/country"
|
"https://ipinfo.io/country"
|
||||||
"https://www.icloud.com/geo/country_code/"
|
|
||||||
)
|
)
|
||||||
local shuffled_urls_output
|
local shuffled_urls_output
|
||||||
shuffled_urls_output=$(printf '%s\n' "${urls[@]}" | shuf)
|
shuffled_urls_output=$(printf '%s\n' "${urls[@]}" | shuf)
|
||||||
|
|||||||
Reference in New Issue
Block a user