1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-29 00:30:30 +01:00

Use bigger cert padding

This commit is contained in:
Frank Denis 2019-10-20 18:02:14 +02:00
parent 340a2ead9c
commit 2785cc579e

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)