fix: Backend crash when operator argument is undefined

This commit is contained in:
Peng-YM
2022-07-08 16:28:43 +08:00
parent d7b97f4595
commit 2aa3cbd9d2
6 changed files with 36 additions and 11 deletions

View File

@@ -115,7 +115,7 @@ async function process(proxies, operators = [], targetPlatform) {
$arguments,
);
} else {
processor = PROXY_PROCESSORS[item.type](item.args);
processor = PROXY_PROCESSORS[item.type](item.args || {});
}
proxies = await ApplyProcessor(processor, proxies);
}