From e054b71a62a86219c61385d7516ab221a828e3f8 Mon Sep 17 00:00:00 2001 From: xream Date: Thu, 3 Apr 2025 22:33:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Shadowrocket=20VMess=20ws=20=E4=BC=A0?= =?UTF-8?q?=E8=BE=93=E5=B1=82=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/parsers/index.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 6acfcef..60a7636 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.16", + "version": "2.19.17", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/parsers/index.js b/backend/src/core/proxy-utils/parsers/index.js index 67cf682..be8b30b 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -492,6 +492,11 @@ function URI_VMess() { } catch (e) {} let transportPath = params.path; + // 补上默认 path + if (['ws'].includes(proxy.network)) { + transportPath = transportPath || '/'; + } + if (proxy.network === 'http') { if (transportHost) { // 1)http(tcp)->host中间逗号(,)隔开