mirror of https://github.com/schollz/croc.git
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