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`); } }