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 {
|
switch res.Reason {
|
||||||
case dnsfilter.ReasonRewrite:
|
case dnsfilter.ReasonRewrite:
|
||||||
|
if d.Res != nil {
|
||||||
|
break // response is already prepared
|
||||||
|
}
|
||||||
if len(res.CanonName) == 0 {
|
if len(res.CanonName) == 0 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue