Explorar el Código

set udp size in edns

Darien Raymond hace 7 años
padre
commit
ed34adf967
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)