-(dnsforward): fix handling RRSIG records
This commit is contained in:
parent
ae51de9335
commit
5d7b3fb7d5
|
@ -165,8 +165,9 @@ func processDNSSECAfterResponse(ctx *dnsContext) int {
|
|||
return resultDone
|
||||
}
|
||||
|
||||
if !ctx.origReqDNSSEC {
|
||||
optResp := d.Res.IsEdns0()
|
||||
if !ctx.origReqDNSSEC && optResp != nil && optResp.Do() {
|
||||
if optResp != nil && !optResp.Do() {
|
||||
return resultDone
|
||||
}
|
||||
|
||||
|
@ -196,6 +197,7 @@ func processDNSSECAfterResponse(ctx *dnsContext) int {
|
|||
}
|
||||
}
|
||||
d.Res.Ns = answers
|
||||
}
|
||||
|
||||
return resultDone
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue