From 48a0c431825ff7b5708a37c2592c18645ca48099 Mon Sep 17 00:00:00 2001 From: vpt Date: Tue, 10 Jan 2023 15:58:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'clash.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clash.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clash.js b/clash.js index 2fd103e..40f61ee 100644 --- a/clash.js +++ b/clash.js @@ -32,7 +32,11 @@ async function configPrependRules(utils, obj) { // 获取代理组的名称 function getProxyGroupName(obj) { - return obj['proxy-groups'].find(item => item.name.includes('节点选择')).name + const nodeSelectName = obj['proxy-groups'].find(item => item.name.includes('节点选择')) + if (nodeSelectName) { + return nodeSelectName.name + } + return obj['proxy-groups'].find(item => item.name.includes('手动切换')).name } // 获取直连组的名称