mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
Fix tfo headroom
This commit is contained in:
parent
a61a64bf9e
commit
b8009d61b2
|
@ -113,6 +113,10 @@ func (c *slowOpenConn) WriterReplaceable() bool {
|
|||
return c.conn != nil
|
||||
}
|
||||
|
||||
func (c *slowOpenConn) LazyHeadroom() 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