Use dns.DefaultMsgSize instead of magic number 4096

This commit is contained in:
Star Brilliant
2018-04-24 20:44:08 +08:00
parent 58e4018ab2
commit dc14a70e9d

View File

@@ -58,6 +58,7 @@ func NewServer(conf *config) (s *Server) {
conf: conf,
udpClient: &dns.Client{
Net: "udp",
UDPSize: 4096,
Timeout: time.Duration(conf.Timeout) * time.Second,
},
tcpClient: &dns.Client{