fix: tfoConn panic

This commit is contained in:
gVisor bot 2023-05-16 14:55:50 +08:00
parent a8b57b19c3
commit 49ae6679c4

View file

@ -18,10 +18,11 @@ type tfoConn struct {
}
func (c *tfoConn) Dial(earlyData []byte) (err error) {
c.Conn, err = c.dialFn(c.ctx, earlyData)
conn, err := c.dialFn(c.ctx, earlyData)
if err != nil {
return
}
c.Conn = conn
c.dialed <- true
return err
}