mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-20 15:05:22 +00:00
Update Nlbench_beta.sh
This commit is contained in:
parent
9136cbd43a
commit
3c2a4d48fa
@ -205,9 +205,11 @@ run_script() {
|
||||
# 多线程测速
|
||||
6)
|
||||
echo -e "运行${YELLOW}多线程测速...${NC}"
|
||||
if [ "$is_warp" = true ] || [ -z "$ipv4_address" ]; then
|
||||
if [ "$use_ipv6" = true ]; then
|
||||
echo "使用IPv6测试选项"
|
||||
bash <(curl -sL bash.icu/speedtest) <<< "3" | tee "$temp_file"
|
||||
else
|
||||
echo "使用IPv4测试选项"
|
||||
bash <(curl -sL bash.icu/speedtest) <<< "1" | tee "$temp_file"
|
||||
fi
|
||||
sed -r -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
|
||||
@ -219,9 +221,11 @@ run_script() {
|
||||
# 单线程测速
|
||||
7)
|
||||
echo -e "运行${YELLOW}单线程测速...${NC}"
|
||||
if [ "$is_warp" = true ] || [ -z "$ipv4_address" ]; then
|
||||
if [ "$use_ipv6" = true ]; then
|
||||
echo "使用IPv6测试选项"
|
||||
bash <(curl -sL bash.icu/speedtest) <<< "17" | tee "$temp_file"
|
||||
else
|
||||
echo "使用IPv4测试选项"
|
||||
bash <(curl -sL bash.icu/speedtest) <<< "2" | tee "$temp_file"
|
||||
fi
|
||||
sed -r -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
|
||||
@ -241,9 +245,11 @@ run_script() {
|
||||
# 回程路由
|
||||
9)
|
||||
echo -e "运行${YELLOW}回程路由测试...${NC}"
|
||||
if [ "$is_warp" = true ] || [ -z "$ipv4_address" ]; then
|
||||
if [ "$use_ipv6" = true ]; then
|
||||
echo "使用IPv6测试选项"
|
||||
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh <<< "3" | tee "$temp_file"
|
||||
else
|
||||
echo "使用IPv4测试选项"
|
||||
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh <<< "1" | tee "$temp_file"
|
||||
fi
|
||||
sed -i -e 's/\x1B\[[0-9;]*[JKmsu]//g' -e '/测试项/,+9d' -e '/信息/d' -e '/^\s*$/d' "$temp_file"
|
||||
|
Loading…
Reference in New Issue
Block a user