From f7ce5f94262f8dfd011f2e9c898ed0d42b510407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=8E=8B?= Date: Sun, 7 Dec 2025 17:38:58 +0800 Subject: [PATCH] change isp api --- sing-box.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sing-box.sh b/sing-box.sh index 64133c2..89021f1 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -495,7 +495,7 @@ get_info() { yellow "\nip检测中,请稍等...\n" server_ip=$(get_realip) clear - isp=$(curl -s --max-time 2 https://speed.cloudflare.com/meta | awk -F\" '{print $26"-"$18}' | sed -e 's/ /_/g' || echo "vps") + isp=$(curl -s --max-time 2 https://ipapi.co/json | tr -d '\n[:space:]' | sed 's/.*"country_code":"\([^"]*\)".*"org":"\([^"]*\)".*/\1-\2/' | sed 's/ /_/g' 2>/dev/null || echo "$hostname") if [ -f "${work_dir}/argo.log" ]; then for i in {1..5}; do