From e552b5475fef42f12ce23db9b5ae76fd110b6e6c Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Tue, 16 May 2023 14:55:50 +0800 Subject: [PATCH] fix: tfoConn panic --- component/dialer/tfo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/component/dialer/tfo.go b/component/dialer/tfo.go index 09d5cced..4863d6ae 100644 --- a/component/dialer/tfo.go +++ b/component/dialer/tfo.go @@ -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 }