set smux version to 1

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

No files matched your search

+3
View File
@@ -25,6 +25,9 @@ func (d *mtcpDialer) parseMetadata(md mdata.Metadata) (err error) {
MaxReceiveBuffer: mdutil.GetInt(md, "mux.maxReceiveBuffer"),
MaxStreamBuffer: mdutil.GetInt(md, "mux.maxStreamBuffer"),
}
if d.md.muxCfg.Version == 0 {
d.md.muxCfg.Version = 2
}
return
}