Revert "AAAA filter: Reject instead of sending an empty response"

This reverts commit aceb8b30f7.
This commit is contained in:
Frank Denis 2018-01-20 22:06:40 +01:00
parent aceb8b30f7
commit f7b8b70322
1 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,11 @@ func (plugin *PluginBlockIPv6) Eval(pluginsState *PluginsState, msg *dns.Msg) er
if question.Qclass != dns.ClassINET || question.Qtype != dns.TypeAAAA {
return nil
}
pluginsState.action = PluginsActionReject
synth, err := EmptyResponseFromMessage(msg)
if err != nil {
return err
}
pluginsState.synthResponse = synth
pluginsState.action = PluginsActionSynth
return nil
}