mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-12 17:49:03 +08:00
feat: JSON 输出支持 produceType internal
This commit is contained in:
parent
abb6f2dec1
commit
163ad9ee09
@ -13,7 +13,8 @@ import singbox_Producer from './sing-box';
|
|||||||
|
|
||||||
function JSON_Producer() {
|
function JSON_Producer() {
|
||||||
const type = 'ALL';
|
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 };
|
return { type, produce };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user