From 88e52f978710ec643b2a54d100783f3905e84a76 Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 17 Jan 2024 22:13:54 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E5=8E=BB=E9=99=A4=20Loon=20Trojan=20?= =?UTF-8?q?HTTP=20=E4=BC=A0=E8=BE=93=E5=B1=82?= 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/loon.js | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/backend/package.json b/backend/package.json index f193f65..7147581 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.176", + "version": "2.14.177", "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/loon.js b/backend/src/core/proxy-utils/producers/loon.js index 116c4fb..c8fca87 100644 --- a/backend/src/core/proxy-utils/producers/loon.js +++ b/backend/src/core/proxy-utils/producers/loon.js @@ -108,18 +108,6 @@ function trojan(proxy) { `,host=${proxy['ws-opts']?.headers?.Host}`, 'ws-opts.headers.Host', ); - } else if (proxy.network === 'http') { - result.append(`,transport=http`); - let httpPath = proxy['http-opts']?.path; - let httpHost = proxy['http-opts']?.headers?.Host; - result.appendIfPresent( - `,path=${Array.isArray(httpPath) ? httpPath[0] : httpPath}`, - 'http-opts.path', - ); - result.appendIfPresent( - `,host=${Array.isArray(httpHost) ? httpHost[0] : httpHost}`, - 'http-opts.headers.Host', - ); } else { throw new Error(`network ${proxy.network} is unsupported`); }