This repository has been archived on 2024-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
Clash.Meta/common/net/patch.go
2023-10-23 16:50:43 +08:00

12 lines
160 B
Go

package net
import "net"
func (c *BufferedConn) RawConn() (net.Conn, bool) {
if c.r.Buffered() == 0 {
return c.ExtendedConn, true
}
return nil, false
}