shorter dns fail time

This commit is contained in:
Zack Scholl 2021-02-19 10:18:13 -08:00
parent c5ff55a193
commit cd2802b8b5
1 changed files with 1 additions and 1 deletions

View File

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