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}`