From f61c5f0b6693a1964cc35ffdad62961565646fb8 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 27 Jun 2024 13:17:39 +0800 Subject: [PATCH] Update nodeloc_vps_autotest_ip.sh --- nodeloc_vps_autotest_ip.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/nodeloc_vps_autotest_ip.sh b/nodeloc_vps_autotest_ip.sh index edce651..5f29817 100644 --- a/nodeloc_vps_autotest_ip.sh +++ b/nodeloc_vps_autotest_ip.sh @@ -58,26 +58,6 @@ install_dependencies() { clear } -# 检测VPS地理位置 -detect_region() { - local country - country=$(curl -s ipinfo.io/country) - case $country in - "TW") echo "1" ;; # 台湾 - "HK") echo "2" ;; # 香港 - "JP") echo "3" ;; # 日本 - "US" | "CA") echo "4" ;; # 北美 - "BR" | "AR" | "CL") echo "5" ;; # 南美 - "GB" | "DE" | "FR" | "NL" | "SE" | "NO" | "FI" | "DK" | "IT" | "ES" | "CH" | "AT" | "BE" | "IE" | "PT" | "GR" | "PL" | "CZ" | "HU" | "RO" | "BG" | "HR" | "SI" | "SK" | "LT" | "LV" | "EE") echo "6" ;; # 欧洲 - "AU" | "NZ") echo "7" ;; # 大洋洲 - "KR") echo "8" ;; # 韩国 - "SG" | "MY" | "TH" | "ID" | "PH" | "VN") echo "9" ;; # 东南亚 - "IN") echo "10" ;; # 印度 - "ZA" | "NG" | "EG" | "KE" | "MA" | "TN" | "GH" | "CI" | "SN" | "UG" | "ET" | "MZ" | "ZM" | "ZW" | "BW" | "MW" | "NA" | "RW" | "SD" | "DJ" | "CM" | "AO") echo "11" ;; # 非洲 - *) echo "0" ;; # 跨国平台 - esac -} - # 统计使用次数 sum_run_times() { local COUNT