mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-16 02:18:28 -07:00
- rewrites: fix crash when handling name->cname->A chain
crash.adguard -> adguard.a.record adguard.a.record -> 1.2.3.4
This commit is contained in:
parent
2d1cba67dc
commit
0848ca0e69
@ -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