This commit is contained in:
wenyifan
2023-11-15 17:49:38 +08:00
parent 3038eb66d8
commit 34b9e3b16e
4 changed files with 22 additions and 4 deletions

View File

@ -27,6 +27,9 @@ type metadata struct {
header http.Header
keepaliveInterval time.Duration
muxCfg *mux.Config
//Evan Enhanced
useH2 bool
}
func (d *mwsDialer) parseMetadata(md mdata.Metadata) (err error) {
@ -67,5 +70,6 @@ func (d *mwsDialer) parseMetadata(md mdata.Metadata) (err error) {
}
}
d.md.useH2 = mdutil.GetBool(md, "h2")
return
}