fix: Useless filters are not migrated

This commit is contained in:
Peng-YM
2022-07-05 15:16:51 +08:00
parent 8e2cd5bb28
commit b2a797cd25
3 changed files with 11 additions and 2 deletions

View File

@@ -8,6 +8,11 @@ function QuickSettingOperator(args) {
return {
name: 'Quick Setting Operator',
func: (proxies) => {
if (convert(args.useless)) {
const filter = UselessFilter();
proxies = filter.func(proxies);
}
return proxies.map((proxy) => {
proxy.udp = convert(args.udp);
proxy.tfo = convert(args.tfo);