This commit is contained in:
Zack Scholl 2020-11-17 10:35:57 -08:00
parent dbc4a08ad0
commit 284af7fc7a
1 changed files with 2 additions and 1 deletions

View File

@ -40,10 +40,11 @@ func lookupIP(address string) (ipaddress string, err error) {
d := net.Dialer{
Timeout: time.Millisecond * time.Duration(10000),
}
return d.DialContext(ctx, "udp", "8.8.8.8:53")
return d.DialContext(ctx, "udp", "1.1.1.1")
},
}
ip, err := r.LookupHost(context.Background(), address)
fmt.Println(ip)
if err != nil {
fmt.Println(err)
return