mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 20:52:15 +08:00
fix: tfoConn panic
This commit is contained in:
parent
8b631f11b8
commit
e552b5475f
@ -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 New Issue
Block a user