mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-26 20:26:06 +08:00
16 lines
226 B
Go
16 lines
226 B
Go
|
//go:build windows
|
||
|
|
||
|
package net
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
)
|
||
|
|
||
|
type enhanceUDPConn struct {
|
||
|
*net.UDPConn
|
||
|
}
|
||
|
|
||
|
func (c *enhanceUDPConn) WaitReadFrom() (data []byte, put func(), addr net.Addr, err error) {
|
||
|
return waitReadFrom(c.UDPConn)
|
||
|
}
|