From 9136cbd43a55f25ef7ba3d278a6a728f84b2dcfc Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Fri, 5 Jul 2024 13:26:20 +0800 Subject: [PATCH] Update Nlbench_beta.sh --- Nlbench_beta.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Nlbench_beta.sh b/Nlbench_beta.sh index 34c1ac1..c33bfff 100644 --- a/Nlbench_beta.sh +++ b/Nlbench_beta.sh @@ -72,6 +72,12 @@ ip_address_and_isp() { if echo "$isp $asn" | grep -iq "cloudflare\|warp\|1.1.1.1"; then is_warp=true fi + + # 判断使用IPv6还是IPv4 + use_ipv6=false + if [ "$is_warp" = true ] || [ -z "$ipv4_address" ]; then + use_ipv6=true + fi } # 检测VPS地理位置