mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
hm
This commit is contained in:
parent
dbc4a08ad0
commit
284af7fc7a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue