Use bigger cert padding

This commit is contained in:
Frank Denis 2019-10-20 18:02:14 +02:00
parent 340a2ead9c
commit 2785cc579e
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ func _dnsExchange(proxy *Proxy, proto string, query *dns.Msg, serverAddress stri
var rtt time.Duration
if proto == "udp" {
qNameLen, padding := len(query.Question[0].Name), 0
if qNameLen < 256 {
padding = 256 - qNameLen
if qNameLen < 480 {
padding = 480 - qNameLen
}
if padding > 0 {
opt := new(dns.OPT)