From d0cd9007652c6240a415ff42556fd551b27f6ead Mon Sep 17 00:00:00 2001 From: xream Date: Fri, 2 Jan 2026 03:07:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Surge=20VMess=20net?= =?UTF-8?q?work=20=E7=AD=9B=E9=80=89=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/surfboard.js | 2 +- backend/src/core/proxy-utils/producers/surge.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/package.json b/backend/package.json index e7a5e43d..364aa233 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.20.65", + "version": "2.20.66", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/surfboard.js b/backend/src/core/proxy-utils/producers/surfboard.js index 02c5ad11..be2f3b96 100644 --- a/backend/src/core/proxy-utils/producers/surfboard.js +++ b/backend/src/core/proxy-utils/producers/surfboard.js @@ -219,7 +219,7 @@ function handleTransport(result, proxy) { } } } - } else { + } else if (!['tcp'].includes(proxy.network)) { throw new Error(`network ${proxy.network} is unsupported`); } } diff --git a/backend/src/core/proxy-utils/producers/surge.js b/backend/src/core/proxy-utils/producers/surge.js index 9570f4f8..65e36aeb 100644 --- a/backend/src/core/proxy-utils/producers/surge.js +++ b/backend/src/core/proxy-utils/producers/surge.js @@ -1226,7 +1226,7 @@ function handleTransport(result, proxy, includeUnsupportedProxy) { $.info( `Include Unsupported Proxy: network ${proxy.network} -> tcp`, ); - } else { + } else if (!['tcp'].includes(proxy.network)) { throw new Error(`network ${proxy.network} is unsupported`); } }