Fixed QX trojan wss issue

This commit is contained in:
Peng-YM 2022-06-20 11:11:53 +08:00
parent 4945826f2d
commit 69ccc6bd08
4 changed files with 5 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -129,7 +129,7 @@ function trojan(proxy) {
// obfs ws
if (isPresent(proxy, 'network')) {
if (proxy.network === 'ws') {
if (proxy.tls) append(`,obfs=wss`);
if (needTls(proxy)) append(`,obfs=wss`);
else append(`,obfs=ws`);
appendIfPresent(
`,obfs-uri=${proxy['ws-opts'].path}`,
@ -145,9 +145,6 @@ function trojan(proxy) {
}
// tls
if (needTls(proxy)) {
proxy.tls = true;
}
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
// tls fingerprint

File diff suppressed because one or more lines are too long