Android: patch
This commit is contained in:
11
common/net/patch.go
Normal file
11
common/net/patch.go
Normal file
@ -0,0 +1,11 @@
|
||||
package net
|
||||
|
||||
import "net"
|
||||
|
||||
func (c *BufferedConn) RawConn() (net.Conn, bool) {
|
||||
if c.r.Buffered() == 0 {
|
||||
return c.ExtendedConn, true
|
||||
}
|
||||
|
||||
return nil, false
|
||||
}
|
Reference in New Issue
Block a user