~增加fake-ip地址过滤编辑功能
~增加GeoSite数据库手动更新
~优化在线获取配置文件功能,现在会自动隐藏无效的节点组
~SSH固化功能支持密码设置
~优化Padavan设备开机自启不正常的bug
~修复不能自动导入本机hosts的bug
~修复tun及混合模式不能自动切换内核的bug
~其他优化及修复
This commit is contained in:
juewuy 2022-03-26 11:01:39 +08:00
parent 9e5d33f3b4
commit 5053c9d259
2 changed files with 3 additions and 7 deletions

Binary file not shown.

View File

@ -255,14 +255,10 @@ EOF`
echo -----------------------------------------------
fi
#检测并去除无效节点组
cat $yamlnew | grep -A 8 "\-\ name:" | xargs | sed 's/- name: /\n/g' | sed 's/ type: .*proxies: /#/g' | sed 's/ rules:.*//g' | sed 's/- //g' > /tmp/clash_proxies_$USER
cat $yamlnew | grep -A 8 "\-\ name:" | xargs | sed 's/- name: /\n/g' | sed 's/ type: .*proxies: /#/g' | sed 's/ rules:.*//g' | sed 's/- //g' | grep -E '#DIRECT $' | awk -F '#' '{print $1}' > /tmp/clash_proxies_$USER
while read line ;do
proxies=$(echo $line | awk -F '#' '{print $2}')
proxies_name=$(echo $line | awk -F '#' '{print $1}')
if [ "$proxies" = 'DIRECT' ];then
sed -i "/- $proxies_name/d" $yamlnew
sed -i "/- name: $proxies_name/,/- DIRECT/d" $yamlnew
fi
sed -i "/- $proxies_name/d" $yamlnew
sed -i "/- name: $proxies_name/,/- DIRECT/d" $yamlnew
done < /tmp/clash_proxies_$USER
rm -rf /tmp/clash_proxies_$USER
#使用核心内置test功能检测