1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 16:23:47 +03:00

shorter dns fail time

This commit is contained in:
Zack Scholl 2021-02-19 10:18:13 -08:00
parent c5ff55a193
commit cd2802b8b5

View File

@ -56,7 +56,7 @@ func lookupIP(address, dns string) (ipaddress string, err error) {
PreferGo: true,
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
d := net.Dialer{
Timeout: time.Millisecond * time.Duration(10000),
Timeout: time.Millisecond * time.Duration(1000),
}
return d.DialContext(ctx, "udp", dns+":53")
},