mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-14 20:55:57 +08:00
fix: Useless filters are not migrated
This commit is contained in:
parent
8e2cd5bb28
commit
b2a797cd25
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.5.2",
|
"version": "2.5.3",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -8,6 +8,11 @@ function QuickSettingOperator(args) {
|
|||||||
return {
|
return {
|
||||||
name: 'Quick Setting Operator',
|
name: 'Quick Setting Operator',
|
||||||
func: (proxies) => {
|
func: (proxies) => {
|
||||||
|
if (convert(args.useless)) {
|
||||||
|
const filter = UselessFilter();
|
||||||
|
proxies = filter.func(proxies);
|
||||||
|
}
|
||||||
|
|
||||||
return proxies.map((proxy) => {
|
return proxies.map((proxy) => {
|
||||||
proxy.udp = convert(args.udp);
|
proxy.udp = convert(args.udp);
|
||||||
proxy.tfo = convert(args.tfo);
|
proxy.tfo = convert(args.tfo);
|
||||||
|
@ -75,10 +75,14 @@ function doMigrationV2() {
|
|||||||
tfo: 'DEFAULT',
|
tfo: 'DEFAULT',
|
||||||
scert: 'DEFAULT',
|
scert: 'DEFAULT',
|
||||||
'vmess aead': 'DEFAULT',
|
'vmess aead': 'DEFAULT',
|
||||||
|
'useless': 'DEFAULT',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
processes.forEach((p) => {
|
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;
|
const { key, value } = p.args;
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case 'udp':
|
case 'udp':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user