From a09ed54d991c81575290efb3034f57e7a3375abd Mon Sep 17 00:00:00 2001 From: juewuy Date: Thu, 3 Feb 2022 15:54:43 +0800 Subject: [PATCH] =?UTF-8?q?v1.5.1=20~=E8=BF=98=E5=8E=9Fclash=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E5=8F=8Apre=E5=86=85=E6=A0=B8=E8=87=B31.7.1=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20~=E5=9C=A8=E7=BA=BF=E7=94=9F=E6=88=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=8A=9F=E8=83=BD=E7=8E=B0=E5=9C=A8?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=AF=BC=E5=85=A5=E5=8C=85=E5=90=AB=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E7=9A=84=E9=93=BE=E6=8E=A5=20~=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E5=86=B2=E7=AA=81=E5=90=8E=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E4=BF=AE=E6=94=B9=E7=AB=AF=E5=8F=A3=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/clash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/clash.sh b/scripts/clash.sh index b589137..fd01b34 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -136,7 +136,7 @@ checkrestart(){ } #功能相关 setport(){ - getconfig + source $ccfg [ -z "$secret" ] && secret=未设置 [ -z "$authentication" ] && authentication=未设置 inputport(){ @@ -377,7 +377,7 @@ checkport(){ if [ -n "$(netstat -ntul 2>&1 |grep \:$portx\ )" ];then echo ----------------------------------------------- echo -e "检测到端口【$portx】被以下进程占用!clash可能无法正常启动!\033[33m" - echo $(netstat -ntulp | grep :$portx | head -n 1) + echo $(netstat -ntul | grep :$portx | head -n 1) echo -e "\033[0m-----------------------------------------------" echo -e "\033[36m请修改默认端口配置!\033[0m" setport