mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 10:24:40 +01:00
Add an extra byte to the padded length
Fixes resolution of livegorouter.trafficmanager.net via Cisco
This commit is contained in:
parent
925c12d334
commit
230a66ea73
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func (proxy *Proxy) Encrypt(serverInfo *ServerInfo, packet []byte, proto string)
|
|||
minQuestionSize += int(xpad[0])
|
||||
}
|
||||
}
|
||||
paddedLength := Min(MaxDNSUDPPacketSize, (Max(minQuestionSize, QueryOverhead)+63) & ^63)
|
||||
paddedLength := Min(MaxDNSUDPPacketSize, (Max(minQuestionSize, QueryOverhead)+1+63) & ^63)
|
||||
if serverInfo.RelayUDPAddr != nil && proto == "tcp" {
|
||||
// XXX - Note: Cisco's broken implementation doesn't accept more than 1472 bytes
|
||||
paddedLength = MaxDNSPacketSize
|
||||
|
|
Loading…
Add table
Reference in a new issue