From eb32a09def991931b85ed360751b8b888fb201b8 Mon Sep 17 00:00:00 2001 From: Peng-YM <1048217874pengym@gmail.com> Date: Fri, 9 Sep 2022 21:04:08 +0800 Subject: [PATCH] fix (core): Fix QX vmess-http producer closes #162 --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/qx.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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`,