mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
Merge:- rewrites: fix crash when handling name->cname->A chain
Close #1704 Close #1712 * commit '0848ca0e69e3c535b70e2d1f7e8c24f0e1941ee9': - rewrites: fix crash when handling name->cname->A chain
This commit is contained in:
commit
8d91e042cc
1 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,9 @@ func processFilteringAfterResponse(ctx *dnsContext) int {
|
|||
|
||||
switch res.Reason {
|
||||
case dnsfilter.ReasonRewrite:
|
||||
if d.Res != nil {
|
||||
break // response is already prepared
|
||||
}
|
||||
if len(res.CanonName) == 0 {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue