fix: VMess URI 输入传输层为 HTTP 时, path 默认为 /

This commit is contained in:
xream 2024-05-30 14:28:02 +08:00
parent 9ce5916414
commit 9e64a68481
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.14.323", "version": "2.14.324",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -340,6 +340,8 @@ function URI_VMess() {
transportPath = Array.isArray(transportPath) transportPath = Array.isArray(transportPath)
? transportPath[0] ? transportPath[0]
: transportPath; : transportPath;
} else {
transportPath = '/';
} }
} }
if (transportPath || transportHost) { if (transportPath || transportHost) {