From 163ad9ee093a6ae6526d1fd75dae916305462ebf Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 31 Mar 2024 04:45:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20JSON=20=E8=BE=93=E5=87=BA=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20produceType=20internal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/core/proxy-utils/producers/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/core/proxy-utils/producers/index.js b/backend/src/core/proxy-utils/producers/index.js index 79721de..d72c062 100644 --- a/backend/src/core/proxy-utils/producers/index.js +++ b/backend/src/core/proxy-utils/producers/index.js @@ -13,7 +13,8 @@ import singbox_Producer from './sing-box'; function JSON_Producer() { const type = 'ALL'; - const produce = (proxies) => JSON.stringify(proxies, null, 2); + const produce = (proxies, type) => + type === 'internal' ? proxies : JSON.stringify(proxies, null, 2); return { type, produce }; }