mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
16 lines
229 B
Go
16 lines
229 B
Go
//go:build windows
|
|
|
|
package packet
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type enhanceUDPConn struct {
|
|
*net.UDPConn
|
|
}
|
|
|
|
func (c *enhanceUDPConn) WaitReadFrom() (data []byte, put func(), addr net.Addr, err error) {
|
|
return waitReadFrom(c.UDPConn)
|
|
}
|