diff --git a/backend/package.json b/backend/package.json index bb22acf..334cc48 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.198", + "version": "2.14.199", "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 5d92fff..4b535c4 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -317,6 +317,17 @@ function lastParse(proxy) { if (['hysteria', 'hysteria2'].includes(proxy.type) && !proxy.ports) { delete proxy.ports; } + if (['vless'].includes(proxy.type)) { + if (['http'].includes(proxy.network)) { + let transportPath = proxy[`${proxy.network}-opts`]?.path; + if (!transportPath) { + if (!proxy[`${proxy.network}-opts`]) { + proxy[`${proxy.network}-opts`] = {}; + } + proxy[`${proxy.network}-opts`].path = ['/']; + } + } + } return proxy; }