mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-10 10:05:18 +00:00
Update nodeloc_vps_autotest_ip.sh
This commit is contained in:
parent
d6eee7d70f
commit
f61c5f0b66
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user