mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-09 19:43:41 +08:00
fix: Force JSON response
This commit is contained in:
@@ -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=$?; } || :
|
||||
|
||||
Reference in New Issue
Block a user