mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-03 09:45:54 +00:00
fix: 修复 QX 无传输层时的 sni 逻辑
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user