1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 01:45:23 +00:00

set udp size in edns

This commit is contained in:
Darien Raymond 2018-06-26 17:26:34 +02:00
parent e9e9de55ac
commit ed34adf967
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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)