From c5b11f8b3632984672482a490ea2a053fae45e1c Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 4 Feb 2024 01:22:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E9=9D=9E=E6=B3=95=E8=8A=82=E7=82=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/processors/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 48b5255..1559033 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.206", + "version": "2.14.207", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/processors/index.js b/backend/src/core/proxy-utils/processors/index.js index 24a3de2..176cf2f 100644 --- a/backend/src/core/proxy-utils/processors/index.js +++ b/backend/src/core/proxy-utils/processors/index.js @@ -87,7 +87,9 @@ function QuickSettingOperator(args) { if (get(args.useless)) { const filter = UselessFilter(); const selected = filter.func(proxies); - proxies.filter((_, i) => selected[i]); + proxies = proxies.filter( + (p, i) => selected[i] && p.port > 0 && p.port <= 65535, + ); } return proxies.map((proxy) => {