set smux version to 1

This commit is contained in:
ginuerzh
2023-10-24 20:45:19 +08:00
parent 1801d855c5
commit 5b1183661f
6 changed files with 22 additions and 2 deletions

View File

@ -51,6 +51,9 @@ func (c *tunnelConnector) parseMetadata(md mdata.Metadata) (err error) {
MaxReceiveBuffer: mdutil.GetInt(md, "mux.maxReceiveBuffer"),
MaxStreamBuffer: mdutil.GetInt(md, "mux.maxStreamBuffer"),
}
if c.md.muxCfg.Version == 0 {
c.md.muxCfg.Version = 2
}
return
}