mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +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
|
return c.conn == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *slowOpenConn) NeedHandshake() bool {
|
||||||
|
return c.conn == nil
|
||||||
|
}
|
||||||
|
|
||||||
func (c *slowOpenConn) ReadFrom(r io.Reader) (n int64, err error) {
|
func (c *slowOpenConn) ReadFrom(r io.Reader) (n int64, err error) {
|
||||||
if c.conn != nil {
|
if c.conn != nil {
|
||||||
return bufio.Copy(c.conn, r)
|
return bufio.Copy(c.conn, r)
|
||||||
|
|
Loading…
Reference in a new issue