From f10e5913fb5ef6b5afd095638f68d214d0c481c5 Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 17 Dec 2023 18:31:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83=E7=9A=84=E6=9C=BA=E5=9C=BA=20Hyster?= =?UTF-8?q?ia/Hysteria2=20=E7=AB=AF=E5=8F=A3=E8=B7=B3=E8=B7=83=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=B8=BA=E7=A9=BA=E6=97=B6=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=AD=A4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/index.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 613de6e..c7c6deb 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.129", + "version": "2.14.130", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index af93c12..374a2c0 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -276,6 +276,9 @@ function lastParse(proxy) { proxy[`${proxy.network}-opts`].path = [transportPath]; } } + if (['hysteria', 'hysteria2'].includes(proxy.type) && !proxy.ports) { + delete proxy.ports; + } return proxy; }