From 1af1af170df3db6403e32c3dbeb1f1010f63cdb8 Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 20 Jan 2026 11:26:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20QX=20VMess=20TLS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/qx.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 14b14a8e..d8ece78e 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.21.11", + "version": "2.21.12", "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 b43944f3..5379ce78 100644 --- a/backend/src/core/proxy-utils/producers/qx.js +++ b/backend/src/core/proxy-utils/producers/qx.js @@ -319,12 +319,15 @@ function vmess(proxy) { if (needTls(proxy)) { proxy.tls = true; } + if (isPresent(proxy, 'network')) { if (proxy.network === 'ws') { if (proxy.tls) append(`,obfs=wss`); else append(`,obfs=ws`); } else if (proxy.network === 'http') { append(`,obfs=http`); + } else if (['tcp'].includes(proxy.network)) { + if (proxy.tls) append(`,obfs=over-tls`); } else if (!['tcp'].includes(proxy.network)) { throw new Error(`network ${proxy.network} is unsupported`); }