~还原clash内核及pre内核至1.7.1版本
~在线生成配置文件功能现在支持导入包含注释的链接
~修复端口冲突后无法正确修改端口的bug
This commit is contained in:
juewuy
2022-02-03 15:54:43 +08:00
parent 48ea78f7cf
commit a09ed54d99

View File

@@ -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