From 32dbebb7896ea06d90fe973527afc8c2355f7311 Mon Sep 17 00:00:00 2001 From: hitsword Date: Thu, 5 Mar 2020 22:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=AF=E5=8F=A3=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hitsword --- udptools.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/udptools.sh b/udptools.sh index b46165c..b120747 100644 --- a/udptools.sh +++ b/udptools.sh @@ -552,7 +552,7 @@ case $RUNMODE in done while [[ ! "$MPORT" =~ [1-65535] ]];do read -p "Middle Port(Udp2Raw与UDPSpeeder中间端口): " MPORT - CHECKMPORT=`netstat -ntl | grep $MPORT` + CHECKMPORT=`netstat -nul | grep $MPORT` if [[ "$CHECKMPORT" != "" ]]; then MPORT=0 echo "端口已被占用"; @@ -561,7 +561,7 @@ case $RUNMODE in done while [[ ! "$LPORT" =~ [1-65535] ]];do read -p "Listen Port(监听给本地其他业务用端口): " LPORT - CHECKLPORT=`netstat -ntl | grep $LPORT` + CHECKLPORT=`netstat -nul | grep $LPORT` if [[ "$CHECKLPORT" != "" ]]; then LPORT=0 echo "端口已被占用"; @@ -585,7 +585,7 @@ case $RUNMODE in done while [[ ! "$MPORT" =~ [1-65535] ]];do read -p "Middle Port(Udp2Raw与UDPSpeeder中间端口): " MPORT - CHECKMPORT=`netstat -ntl | grep $MPORT` + CHECKMPORT=`netstat -nul | grep $MPORT` if [[ "$CHECKMPORT" != "" ]]; then MPORT=0 echo "端口已被占用";