Fixed targetPlatform parameter not working on collections

Bug fixed
This commit is contained in:
Peng-YM 2022-04-18 16:13:32 +08:00
parent 3ce237d722
commit 063cbee198
2 changed files with 5 additions and 4 deletions

View File

@ -966,7 +966,8 @@ function service() {
// apply processors // apply processors
currentProxies = await ProxyUtils.process( currentProxies = await ProxyUtils.process(
currentProxies, currentProxies,
sub.process || [] sub.process || [],
platform
); );
} }
// merge // merge
@ -979,7 +980,7 @@ function service() {
} }
if (!noProcessor) { if (!noProcessor) {
// apply own processors // apply own processors
proxies = await ProxyUtils.process(proxies, collection.process || []); proxies = await ProxyUtils.process(proxies, collection.process || [], platform);
} }
if (proxies.length === 0) { if (proxies.length === 0) {
throw new Error(`组合订阅中不含有效节点!`); throw new Error(`组合订阅中不含有效节点!`);

File diff suppressed because one or more lines are too long