v1.5.6fix

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

Binary file not shown.

View File

@@ -257,8 +257,8 @@ EOF`
#检测并去除无效节点组
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
sed -i "/- $proxies_name/d" $yamlnew
sed -i "/- name: $proxies_name/,/- DIRECT/d" $yamlnew
sed -i "/- $line/d" $yamlnew
sed -i "/- name: $line/,/- DIRECT/d" $yamlnew
done < /tmp/clash_proxies_$USER
rm -rf /tmp/clash_proxies_$USER
#使用核心内置test功能检测