From 6804c6368a36b396fd150a7018acb5a598769312 Mon Sep 17 00:00:00 2001 From: xream Date: Fri, 23 May 2025 22:36:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20QX=20VLESS=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 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index cdca5bb..15f5e41 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.47", + "version": "2.19.48", "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 a35f4c0..cb22547 100644 --- a/backend/src/core/proxy-utils/producers/qx.js +++ b/backend/src/core/proxy-utils/producers/qx.js @@ -405,6 +405,8 @@ function vless(proxy) { 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`); }