更新 'clash.js'

This commit is contained in:
vpt 2023-01-10 16:36:07 +08:00
parent 57457bcfa0
commit cd26176513

View File

@ -22,7 +22,7 @@ async function configPrependRules(utils, obj) {
const prependDirectRules = directs.split(`\n`).map(item => `DOMAIN-SUFFIX,${item},${directGroupName}`)
const proxyResponse = await axios.get('https://git.yevpt.com/vpt/public-data/raw/branch/master/proxy')
const proxys = proxyResponse.data
console.log('proxys',proxys.split(`\n`))
console.log('proxys',proxys.split(`\n`).slice(-5))
const prependProxyRules = proxys.split(`\n`).map(item => `DOMAIN-SUFFIX,${item},${proxyGroupName}`)
const prependRules = [...prependDirectRules, ...prependProxyRules]
obj.rules = [...prependRules, ...obj.rules]