更新 clash.js
This commit is contained in:
parent
c6cc6233f3
commit
224392196e
5
clash.js
5
clash.js
@ -35,10 +35,11 @@ async function configPrependRules(utils, obj) {
|
|||||||
|
|
||||||
function getRuleItem(match, direct) {
|
function getRuleItem(match, direct) {
|
||||||
const groupName = direct ? directGroupName : proxyGroupName
|
const groupName = direct ? directGroupName : proxyGroupName
|
||||||
|
const matchName = match.split('#')[0].trim()
|
||||||
if (isIPAddress(match)) {
|
if (isIPAddress(match)) {
|
||||||
return `IP-CIDR,${match}/24,${groupName},no-resolve`
|
return `IP-CIDR,${matchName}/24,${groupName},no-resolve`
|
||||||
}
|
}
|
||||||
return `DOMAIN-SUFFIX,${match},${groupName}`
|
return `DOMAIN-SUFFIX,${matchName},${groupName}`
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取代理组的名称
|
// 获取代理组的名称
|
||||||
|
Loading…
Reference in New Issue
Block a user