mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
set udp size in edns
This commit is contained in:
parent
e9e9de55ac
commit
ed34adf967
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user