소스 검색

set udp size in edns

Darien Raymond 7 년 전
부모
커밋
ed34adf967
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)