mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-06 09:02:32 +00:00
Merge remote branch
This commit is contained in:
commit
cbea46b0c8
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ type BufferedConn struct {
|
|||
}
|
||||
|
||||
func NewBufferedConn(c net.Conn) *BufferedConn {
|
||||
if bc, ok := c.(*BufferedConn); ok {
|
||||
return bc
|
||||
}
|
||||
return &BufferedConn{bufio.NewReader(c), c}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue