mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-07 19:03:19 +08:00
feat: 订阅和文件的请求链接支持传入 $options , 可在脚本中使用
This commit is contained in:
@@ -77,7 +77,13 @@ function parse(raw) {
|
||||
return proxies;
|
||||
}
|
||||
|
||||
async function processFn(proxies, operators = [], targetPlatform, source) {
|
||||
async function processFn(
|
||||
proxies,
|
||||
operators = [],
|
||||
targetPlatform,
|
||||
source,
|
||||
$options,
|
||||
) {
|
||||
for (const item of operators) {
|
||||
// process script
|
||||
let script;
|
||||
@@ -176,6 +182,7 @@ async function processFn(proxies, operators = [], targetPlatform, source) {
|
||||
targetPlatform,
|
||||
$arguments,
|
||||
source,
|
||||
$options,
|
||||
);
|
||||
} else {
|
||||
processor = PROXY_PROCESSORS[item.type](item.args || {});
|
||||
|
||||
Reference in New Issue
Block a user