add sni for mws and ws

This commit is contained in:
wenyifan
2026-06-29 16:38:08 +08:00
parent c2cb8f93d2
commit 55461566bd
4 changed files with 10 additions and 2 deletions
+2
View File
@@ -19,6 +19,7 @@ type metadata struct {
path string
useH2 bool
sni string
handshakeTimeout time.Duration
readHeaderTimeout time.Duration
@@ -80,6 +81,7 @@ func (d *mwsDialer) parseMetadata(md mdata.Metadata) (err error) {
d.md.tcpKeepaliveCount = mdutil.GetInt(md, "tcp.keepalive.count")
d.md.useH2 = mdutil.GetBool(md, "h2")
d.md.sni = mdutil.GetString(md, "sni")
return
}