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