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中间逗号(,)隔开