(c chan NAT, ip net.IP)
| 24 | } |
| 25 | |
| 26 | func discoverNATPMPWithAddr(c chan NAT, ip net.IP) { |
| 27 | client := natpmp.NewClient(ip) |
| 28 | _, err := client.GetExternalAddress() |
| 29 | if err != nil { |
| 30 | return |
| 31 | } |
| 32 | |
| 33 | c <- &natpmpNAT{client, ip, make(map[int]int)} |
| 34 | } |
| 35 | |
| 36 | type natpmpNAT struct { |
| 37 | c *natpmp.Client |
no test coverage detected