(host string)
| 15 | ) |
| 16 | |
| 17 | func LookupIP(host string) []net.IP { |
| 18 | ipAddrs, _ := net.LookupIP(host) |
| 19 | return ipAddrs |
| 20 | } |
| 21 | |
| 22 | func LookupIPTimeout(host string, timeout time.Duration) []net.IP { |
| 23 | cntx, cancel := context.WithTimeout(context.Background(), timeout) |
no outgoing calls