refactor: Standardize error handling for RESTful APIs

This commit is contained in:
Peng-YM
2022-07-05 17:04:58 +08:00
parent 0e089ef8ce
commit 00c28c6cb8
10 changed files with 123 additions and 68 deletions

View File

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