From cd3852cae4638adfca2093cb886988470ca2e9b5 Mon Sep 17 00:00:00 2001 From: vpt Date: Wed, 6 Dec 2023 11:00:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20clash.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clash.js b/clash.js index db95539..f452e29 100644 --- a/clash.js +++ b/clash.js @@ -36,7 +36,7 @@ async function configPrependRules(utils, obj) { function getRuleItem(match, direct) { const groupName = direct ? directGroupName : proxyGroupName const matchName = match.split('#')[0].trim() - if (isIPAddress(match)) { + if (isIPAddress(matchName)) { return `IP-CIDR,${matchName}/24,${groupName},no-resolve` } return `DOMAIN-SUFFIX,${matchName},${groupName}`