fix: 修复 QX 无传输层时的 sni 逻辑

This commit is contained in:
xream committed 2026-04-13 01:23:55 +08:00
1 parent 2a760cee5c
commit 9799a579da
3 files changed
+45 -1

No files matched your search

@@ -39,6 +39,12 @@ const grammars = String.raw`
$set(proxy, "ws-opts.headers.Host", obfs.host);
} else if (obfs.type === "over-tls") {
proxy.tls = true;
// Some QX share links use obfs-host as the TLS server name for
// plain over-tls TCP nodes instead of the explicit tls-host field.
// Accept it as a compatibility alias, but do not override tls-host.
if (obfs.host && !proxy.sni) {
proxy.sni = obfs.host;
}
} else if (obfs.type === "http") {
proxy.network = "http";
$set(proxy, "http-opts.path", obfs.path);