fix: peek not work with some inbound

This commit is contained in:
wwqgtxx
2023-02-25 19:41:01 +08:00
parent de92bc0234
commit a3b8c9c233
3 changed files with 15 additions and 9 deletions

View File

@ -27,6 +27,10 @@ func (c *BufferedConn) Reader() *bufio.Reader {
return c.r
}
func (c *BufferedConn) ResetPeeked() {
c.peeked = false
}
func (c *BufferedConn) Peeked() bool {
return c.peeked
}