default to smux version 2 for tunnel

This commit is contained in:
ginuerzh
2023-10-17 22:15:23 +08:00
parent 1759c95e78
commit 0a565120df
5 changed files with 37 additions and 9 deletions

View File

@ -21,7 +21,7 @@ func (c *tunnelConnector) Bind(ctx context.Context, conn net.Conn, network, addr
}
log.Infof("create tunnel on %s/%s OK, tunnel=%s, connector=%s", addr, network, c.md.tunnelID.String(), cid)
session, err := mux.ServerSession(conn, nil)
session, err := mux.ServerSession(conn, c.md.muxCfg)
if err != nil {
return nil, err
}