diff --git a/transport/tuic/client.go b/transport/tuic/client.go index 6f8203bf..2658e52d 100644 --- a/transport/tuic/client.go +++ b/transport/tuic/client.go @@ -259,6 +259,10 @@ type clientConn struct { requestWritten bool } +func (c *clientConn) NeedHandshake() bool { + return !c.requestWritten +} + func (c *clientConn) Read(b []byte) (n int, err error) { n, err = c.stream.Read(b) return n, baderror.WrapQUIC(err)