fix: tfoConn panic
This commit is contained in:
parent
a8b57b19c3
commit
49ae6679c4
1 changed files with 2 additions and 1 deletions
|
@ -18,10 +18,11 @@ type tfoConn struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *tfoConn) Dial(earlyData []byte) (err error) {
|
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 {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
c.Conn = conn
|
||||||
c.dialed <- true
|
c.dialed <- true
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue