v1.8.0稳定版

~部分文字说明调整
~增加自定义配置文件启动失败后的文件存档
This commit is contained in:
juewuy
2023-08-20 19:25:34 +08:00
parent 757066b768
commit 36fe66a489
8 changed files with 7 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,8 +1,7 @@
1.8.0
1.7.0
1.6.3
1.5.1
1.3.0
1.2.0
1.1.0
1.0.0beta11
0.9.7

View File

@@ -2,5 +2,5 @@ clashnet_v=v1.7.6
clashpre_v=2022.11.25
clash_v=v1.7.1
meta_v=v1.15.0
versionsh=1.7.10h
GeoIP_v=20230819
versionsh=1.8.0

View File

@@ -1184,9 +1184,9 @@ clashcfg(){
echo -e "\033[33m切换模式后需要手动重启clash服务以生效\033[0m"
echo -----------------------------------------------
echo -e " 1 fake-ip模式 \033[32m响应速度更快\033[0m"
echo -e " 兼容性比较差,部分应用可能打不开"
echo -e " 不支持绕过CN-IP功能"
echo -e " 2 redir_host模式\033[32m兼容性更好\033[0m"
echo -e " 不支持Tun模式抗污染能力略差"
echo -e " 需搭配加密DNS使用"
echo " 0 返回上级菜单"
read -p "请输入对应数字 > " num
if [ -z "$num" ]; then

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) Juewuy
version=1.7.10h
version=1.8.0
setdir(){
dir_avail(){

View File

@@ -467,6 +467,8 @@ EOF
if [ "$?" != 0 ];then
logger "$($bindir/clash -t -d $bindir -f $TMPDIR/config.yaml | grep -Eo 'error.*=.*')" 31
logger "自定义配置文件校验失败!将使用基础配置文件启动!" 33
logger "错误详情请参考 $TMPDIR/error.yaml 文件!" 33
mv -f $TMPDIR/config.yaml $TMPDIR/error.yaml &>/dev/null
sed -i "/#自定义策略组开始/,/#自定义策略组结束/d" $TMPDIR/proxy-groups.yaml
mv -f $TMPDIR/set_bak.yaml $TMPDIR/set.yaml &>/dev/null
#合并基础配置文件