mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
EmptyResponseFromMessage: always set the RA flag, copy the RD flag
This commit is contained in:
parent
3f551f4b66
commit
8d43ebf120
1 changed files with 2 additions and 4 deletions
|
@ -16,10 +16,8 @@ func EmptyResponseFromMessage(srcMsg *dns.Msg) *dns.Msg {
|
|||
dstMsg := dns.Msg{MsgHdr: srcMsg.MsgHdr, Compress: true}
|
||||
dstMsg.Question = srcMsg.Question
|
||||
dstMsg.Response = true
|
||||
if srcMsg.RecursionDesired {
|
||||
dstMsg.RecursionAvailable = true
|
||||
}
|
||||
dstMsg.RecursionDesired = false
|
||||
dstMsg.RecursionDesired = srcMsg.RecursionDesired
|
||||
dstMsg.CheckingDisabled = false
|
||||
dstMsg.AuthenticatedData = false
|
||||
if edns0 := srcMsg.IsEdns0(); edns0 != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue