diff --git a/backend/package.json b/backend/package.json index 86f0b6d..0ab81a9 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 c5c2626..9eddb39 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(