diff --git a/bin/clashfm.tar.gz b/bin/clashfm.tar.gz index c7950c6..a7df4eb 100644 Binary files a/bin/clashfm.tar.gz and b/bin/clashfm.tar.gz differ diff --git a/scripts/start.sh b/scripts/start.sh index 24ec97a..abb0e37 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -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功能检测