From 5e21a20e3743151bfad0e93b3922b09fc59e0ced Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 12 Dec 2023 21:13:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Loon=20Trojan=20WS?= =?UTF-8?q?=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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 86f0b6daa..0ab81a9e1 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.120", + "version": "2.14.121", "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 c5c26266d..9eddb399e 100644 --- a/backend/src/core/proxy-utils/producers/loon.js +++ b/backend/src/core/proxy-utils/producers/loon.js @@ -99,7 +99,7 @@ function trojan(proxy) { if (proxy.network === 'ws') { result.append(`,transport=ws`); result.appendIfPresent( - `,path=${proxy['ws-opts'].path}`, + `,path=${proxy['ws-opts']?.path}`, 'ws-opts.path', ); result.appendIfPresent(