mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 16:52:21 +08: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 New Issue
Block a user