Use bigger cert padding
This commit is contained in:
parent
340a2ead9c
commit
2785cc579e
|
@ -193,8 +193,8 @@ func _dnsExchange(proxy *Proxy, proto string, query *dns.Msg, serverAddress stri
|
||||||
var rtt time.Duration
|
var rtt time.Duration
|
||||||
if proto == "udp" {
|
if proto == "udp" {
|
||||||
qNameLen, padding := len(query.Question[0].Name), 0
|
qNameLen, padding := len(query.Question[0].Name), 0
|
||||||
if qNameLen < 256 {
|
if qNameLen < 480 {
|
||||||
padding = 256 - qNameLen
|
padding = 480 - qNameLen
|
||||||
}
|
}
|
||||||
if padding > 0 {
|
if padding > 0 {
|
||||||
opt := new(dns.OPT)
|
opt := new(dns.OPT)
|
||||||
|
|
Loading…
Reference in New Issue