()
| 47 | } |
| 48 | |
| 49 | func (s *IPAddrTestServer) Run() { |
| 50 | pconn, err := net.ListenPacket("udp4", "127.0.0.1:0") |
| 51 | if err != nil { |
| 52 | panic(err) |
| 53 | } |
| 54 | s.udpServ.PacketConn = pconn |
| 55 | s.udpServ.Handler = s |
| 56 | go s.udpServ.ActivateAndServe() //nolint:errcheck |
| 57 | } |
| 58 | |
| 59 | func (s *IPAddrTestServer) Close() error { |
| 60 | return s.udpServ.PacketConn.Close() |
no outgoing calls
no test coverage detected