From 1b5cf73385d0d2bff636b1768c90eafac30bb6ef Mon Sep 17 00:00:00 2001 From: dingjun Date: Thu, 22 Dec 2016 13:33:55 +0800 Subject: [PATCH] set UDPSize --- handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler.go b/handler.go index dae0809..e70cce3 100644 --- a/handler.go +++ b/handler.go @@ -22,8 +22,8 @@ type dnsHandler struct { func newDNSHandler(cfg *conf) *dnsHandler { return &dnsHandler{ cfg: cfg, - tcpclient: &dns.Client{Net: "tcp", Timeout: 2 * time.Second}, - udpclient: &dns.Client{Net: "udp", Timeout: 2 * time.Second}, + tcpclient: &dns.Client{Net: "tcp", Timeout: 2 * time.Second, UDPSize: 4096}, + udpclient: &dns.Client{Net: "udp", Timeout: 2 * time.Second, UDPSize: 4096}, httpsclient: &GoogleHTTPDns{}, }