fix: 修复 Loon Trojan WS 传输层

This commit is contained in:
xream
2023-12-12 21:13:17 +08:00
parent 76b5dc5809
commit 5e21a20e37
2 changed files with 2 additions and 2 deletions

View File

@@ -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(