v1.0.0beta16.8
~优化了mac地址导入和删除,现在不完全依赖dhcp服务 ~优化了合并配置文件的方式,修复部分设备报错的bug
This commit is contained in:
@@ -239,8 +239,7 @@ EOF
|
||||
###################################
|
||||
[ -f $clashdir/user.yaml ] && yaml_user=$clashdir/user.yaml
|
||||
#合并文件
|
||||
sed -i "/^prox/i" $tmpdir/proxy.yaml #防止缺少换行符导致的报错
|
||||
cat $tmpdir/set.yaml $yaml_user $tmpdir/proxy.yaml > $tmpdir/config.yaml
|
||||
cut -c 1- $tmpdir/set.yaml $yaml_user $tmpdir/proxy.yaml > $tmpdir/config.yaml
|
||||
#插入自定义规则
|
||||
if [ -f $clashdir/rules.yaml ];then
|
||||
while read line;do
|
||||
|
||||
Reference in New Issue
Block a user