add sni for mws and ws
This commit is contained in:
@@ -17,6 +17,7 @@ type metadata struct {
|
||||
host string
|
||||
path string
|
||||
useH2 bool
|
||||
sni string
|
||||
|
||||
handshakeTimeout time.Duration
|
||||
readHeaderTimeout time.Duration
|
||||
@@ -68,5 +69,6 @@ func (d *wsDialer) 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user