From e2a1bfe8cf562d89e498784d09ca6e4253b57b46 Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Sat, 4 Jun 2022 16:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E9=83=A8=E5=88=86=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=94=BE=E8=BF=9B=E4=BA=86--expert=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quicklytest.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/quicklytest.sh b/quicklytest.sh index 9c876d8..d847b00 100644 --- a/quicklytest.sh +++ b/quicklytest.sh @@ -1,5 +1,12 @@ #!/bin/bash +expert=False +#是否开启全部选项 +if [[ $1 == "--expert" ]]; then + expert=True + echo "已开启全部选项" +fi + Green_font="\033[32m" && Red_font="\033[31m" && Font_suffix="\033[0m" Info="${Green_font}[Info]${Font_suffix}" Error="${Red_font}[Error]${Font_suffix}" @@ -118,6 +125,12 @@ ask_update_script() { } check_mode() { + + if [[ $expert != True ]] ; then + TRACECMD="nexttrace" + return; + fi + echo -e "${Info} Nexttrace目前支持以下三种协议发起Traceroute请求:\n1.ICMP\n2.TCP(速度最快,但部分节点不支持)\n3.UDP\n(IPv6暂只支持ICMP模式)" && read -r -p "输入数字以选择:" node while [[ ! "${node}" =~ ^[1-3]$ ]]; do