diff --git a/backend/package.json b/backend/package.json index ed2d2e9..e887b13 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.192", + "version": "2.14.193", "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 4deeded..f2043a1 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -266,9 +266,13 @@ function lastParse(proxy) { } if (proxy.network === 'h2') { const host = proxy['h2-opts']?.headers?.host; + const path = proxy['h2-opts']?.path; if (host && !Array.isArray(host)) { proxy['h2-opts'].headers.host = [host]; } + if (Array.isArray(path)) { + proxy['h2-opts'].path = path[0]; + } } if (proxy.tls && !proxy.sni) { if (proxy.network) {