mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
Fix slow open
This commit is contained in:
parent
466800aa3a
commit
dd5b0abc67
|
@ -119,6 +119,10 @@ func (c *slowOpenConn) LazyHeadroom() bool {
|
|||
return c.conn == nil
|
||||
}
|
||||
|
||||
func (c *slowOpenConn) NeedHandshake() bool {
|
||||
return c.conn == nil
|
||||
}
|
||||
|
||||
func (c *slowOpenConn) ReadFrom(r io.Reader) (n int64, err error) {
|
||||
if c.conn != nil {
|
||||
return bufio.Copy(c.conn, r)
|
||||
|
|
Loading…
Reference in a new issue