From 57457bcfa0d96f2b709fad02c5952d3889a55633 Mon Sep 17 00:00:00 2001 From: vpt Date: Tue, 10 Jan 2023 16:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'clash.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clash.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clash.js b/clash.js index 40f61ee..81a8d67 100644 --- a/clash.js +++ b/clash.js @@ -13,7 +13,7 @@ module.exports.parse = async(raw, utils, meta) => { // 配置预先规则 async function configPrependRules(utils, obj) { - const { axios } = utils + const { axios,console } = utils const proxyGroupName = getProxyGroupName(obj) const directGroupName = getDirectGroupName(obj) try { @@ -22,6 +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`)) const prependProxyRules = proxys.split(`\n`).map(item => `DOMAIN-SUFFIX,${item},${proxyGroupName}`) const prependRules = [...prependDirectRules, ...prependProxyRules] obj.rules = [...prependRules, ...obj.rules]