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:
parent
c5ff55a193
commit
cd2802b8b5
@ -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")
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user