mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
shorter dns fail time
This commit is contained in:
parent
c5ff55a193
commit
cd2802b8b5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue