MCPcopy
hub / github.com/MetaCubeX/mihomo / nopPacketConn

Struct nopPacketConn

adapter/outbound/reject.go:119–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117var udpAddrIPv4Unspecified = &net.UDPAddr{IP: net.IPv4zero, Port: 0}
118
119type nopPacketConn struct{}
120
121func (npc nopPacketConn) WriteTo(b []byte, addr net.Addr) (n int, err error) {
122 return len(b), nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected