更新 'clash.js'
This commit is contained in:
parent
57457bcfa0
commit
cd26176513
2
clash.js
2
clash.js
@ -22,7 +22,7 @@ async function configPrependRules(utils, obj) {
|
|||||||
const prependDirectRules = directs.split(`\n`).map(item => `DOMAIN-SUFFIX,${item},${directGroupName}`)
|
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 proxyResponse = await axios.get('https://git.yevpt.com/vpt/public-data/raw/branch/master/proxy')
|
||||||
const proxys = proxyResponse.data
|
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 prependProxyRules = proxys.split(`\n`).map(item => `DOMAIN-SUFFIX,${item},${proxyGroupName}`)
|
||||||
const prependRules = [...prependDirectRules, ...prependProxyRules]
|
const prependRules = [...prependDirectRules, ...prependProxyRules]
|
||||||
obj.rules = [...prependRules, ...obj.rules]
|
obj.rules = [...prependRules, ...obj.rules]
|
||||||
|
Loading…
Reference in New Issue
Block a user