Fix TUIC client

This commit is contained in:
世界 2023-08-27 15:19:24 +08:00
parent 05669eaaad
commit 5a309266f0
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 4 additions and 0 deletions

View File

@ -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)