Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-07-05 13:26:20 +08:00 committed by GitHub
parent 3846a9128f
commit 9136cbd43a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,6 +72,12 @@ ip_address_and_isp() {
if echo "$isp $asn" | grep -iq "cloudflare\|warp\|1.1.1.1"; then if echo "$isp $asn" | grep -iq "cloudflare\|warp\|1.1.1.1"; then
is_warp=true is_warp=true
fi fi
# 判断使用IPv6还是IPv4
use_ipv6=false
if [ "$is_warp" = true ] || [ -z "$ipv4_address" ]; then
use_ipv6=true
fi
} }
# 检测VPS地理位置 # 检测VPS地理位置