Browse Source

set udp size in edns

Darien Raymond 7 years ago
parent
commit
ed34adf967
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/dns/udpns.go

+ 1 - 0
app/dns/udpns.go

@@ -144,6 +144,7 @@ func (s *ClassicNameServer) getMsgOptions() *dns.OPT {
 	o := new(dns.OPT)
 	o.Hdr.Name = "."
 	o.Hdr.Rrtype = dns.TypeOPT
+	o.SetUDPSize(1280)
 
 	if len(s.clientIP.V4) == 4 {
 		e := new(dns.EDNS0_SUBNET)