v1.9.0pre9

~providers功能若干优化
~修复已经存在providers模块却依然提示找不到节点的bug
This commit is contained in:
juewuy
2024-02-15 17:54:37 +08:00
parent 3e06537390
commit 8f440ec836
7 changed files with 29 additions and 33 deletions

View File

@@ -240,7 +240,7 @@ check_clash_config(){ #检查clash配置文件
}
check_singbox_config(){ #检查singbox配置文件
#检测节点或providers
if [ -z "$(cat $core_config_new | grep -Eo '"server":|"outbound_providers":' )" ];then
if [ -z "$(cat $core_config_new | grep -Eo 'server|outbound_providers' )" ];then
echo -----------------------------------------------
logger "获取到了配置文件【$core_config_new】,但似乎并不包含正确的节点信息!" 31
exit 1