v1.1.5-test

~新手引导流程中新增自动设置加密DNS功能(当检测到本地证书时自动配置)
~优化了合并自定义配置文件的流程,现在会在生成的规则中添加注释
~同步最新1.4.2版本官方核心及高级版核心
~同步最新Dashboard面板及数据库文件
~修复部分描述错误
This commit is contained in:
juewuy
2021-03-13 18:06:38 +08:00
parent 0b6e84d767
commit 2328ed9616
24 changed files with 16 additions and 7 deletions

View File

@@ -270,13 +270,13 @@ EOF
#合并文件
cut -c 1- $tmpdir/set.yaml $yaml_user $tmpdir/proxy.yaml > $tmpdir/config.yaml
#插入自定义规则
sed -i "/#自定义规则/d" $tmpdir/config.yaml
if [ -f $clashdir/rules.yaml ];then
while read line;do
[ -z "$(echo "$line" | grep '#')" ] && \
[ -z "$(echo "$line " | grep '#')" ] && \
[ -n "$(echo "$line" | grep '\-\ ')" ] && \
line=$(echo "$line" | sed 's#/#\\/#') && \
sed -i "/$line/d" $tmpdir/config.yaml && \
sed -i "/^rules:/a\ $line" $tmpdir/config.yaml
sed -i "/^rules:/a\ $line #自定义规则" $tmpdir/config.yaml
done < $clashdir/rules.yaml
fi
#如果没有使用小闪存模式