Revert "AAAA filter: Reject instead of sending an empty response"
This reverts commit aceb8b30f7
.
This commit is contained in:
parent
aceb8b30f7
commit
f7b8b70322
|
@ -33,6 +33,11 @@ func (plugin *PluginBlockIPv6) Eval(pluginsState *PluginsState, msg *dns.Msg) er
|
||||||
if question.Qclass != dns.ClassINET || question.Qtype != dns.TypeAAAA {
|
if question.Qclass != dns.ClassINET || question.Qtype != dns.TypeAAAA {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
pluginsState.action = PluginsActionReject
|
synth, err := EmptyResponseFromMessage(msg)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
pluginsState.synthResponse = synth
|
||||||
|
pluginsState.action = PluginsActionSynth
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue