mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-07-25 07:24:07 +08:00
Fix TUIC client
This commit is contained in:
parent
05669eaaad
commit
5a309266f0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user