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

@@ -75,10 +75,14 @@ function doMigrationV2() {
tfo: 'DEFAULT',
scert: 'DEFAULT',
'vmess aead': 'DEFAULT',
'useless': 'DEFAULT',
},
};
processes.forEach((p) => {
if (p.type === 'Set Property Operator') {
if (p.type === 'Useless Filter') {
quickSettingOperator.args.useless = 'ENABLED';
}
else if (p.type === 'Set Property Operator') {
const { key, value } = p.args;
switch (key) {
case 'udp':