diff --git a/backend/package.json b/backend/package.json index d1a6679..64385d5 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.12.8", + "version": "2.12.9", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/qx.js b/backend/src/core/proxy-utils/producers/qx.js index 475629b..55cbc63 100644 --- a/backend/src/core/proxy-utils/producers/qx.js +++ b/backend/src/core/proxy-utils/producers/qx.js @@ -206,7 +206,10 @@ function vmess(proxy) { } else { throw new Error(`network ${proxy.network} is unsupported`); } - appendIfPresent(`,obfs-uri=${proxy['ws-opts'].path}`, 'ws-opts.path'); + appendIfPresent( + `,obfs-uri=${proxy[`${proxy.network}-opts`].path}`, + `${proxy.network}-opts.path`, + ); appendIfPresent( `,obfs-host=${proxy[`${proxy.network}-opts`].headers.Host}`, `${proxy.network}-opts.headers.Host`,