From cd2802b8b524cea7ca357512632f0a1013f6f543 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Fri, 19 Feb 2021 10:18:13 -0800 Subject: [PATCH] shorter dns fail time --- src/models/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/constants.go b/src/models/constants.go index 5f57c26a..329f69e0 100644 --- a/src/models/constants.go +++ b/src/models/constants.go @@ -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") },