mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 16:25:39 +00:00
Use dns.DefaultMsgSize instead of magic number 4096
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user