Skip to content

Commit 3ba850c

Browse files
committed
cache: include CD bit in the cache key
1 parent 4862bfe commit 3ba850c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dnscrypt-proxy/plugin_cache.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func computeCacheKey(pluginsState *PluginsState, msg *dns.Msg) [32]byte {
4141
if pluginsState.dnssec {
4242
tmp[4] = 1
4343
}
44+
if msg.CheckingDisabled {
45+
tmp[4] |= 2
46+
}
4447
h.Write(tmp[:])
4548
normalizedRawQName := []byte(question.Header().Name)
4649
NormalizeRawQName(&normalizedRawQName)

0 commit comments

Comments
 (0)