mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-10-26 08:00:24 +00:00
set udp size in edns
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user