mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01: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=(
|
||||
"https://ipapi.co/country/"
|
||||
"http://ip-api.com/line/?fields=countryCode"
|
||||
"https://ifconfig.co/country-iso"
|
||||
"https://ipinfo.io/country"
|
||||
"https://www.icloud.com/geo/country_code/"
|
||||
)
|
||||
local shuffled_urls_output
|
||||
shuffled_urls_output=$(printf '%s\n' "${urls[@]}" | shuf)
|
||||
|
||||
Reference in New Issue
Block a user