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`); }