mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
fix: Force JSON response
This commit is contained in:
parent
354bd2429b
commit
ced994d94a
@ -23,7 +23,7 @@ fi
|
||||
|
||||
# Detect country
|
||||
COUNTRY=""
|
||||
{ JSON=$(curl -sfk https://ipinfo.io); rc=$?; } || :
|
||||
{ JSON=$(curl -sfk https://ipinfo.io/json); rc=$?; } || :
|
||||
|
||||
if (( rc == 0 )); then
|
||||
{ COUNTRY=$(echo "$JSON" | jq -r '.country' 2> /dev/null); rc=$?; } || :
|
||||
|
Loading…
Reference in New Issue
Block a user