mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 19:31:45 +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
@ -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…
Reference in New Issue
Block a user