1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2025-01-21 03:15:47 +01:00

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

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
}