Skip to content

Commit aceb8b3

Browse files
committed
AAAA filter: Reject instead of sending an empty response
Empty responses can cause issues with CNAME records
1 parent f33b8a9 commit aceb8b3

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

dnscrypt-proxy/plugin_block_ipv6.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ func (plugin *PluginBlockIPv6) Eval(pluginsState *PluginsState, msg *dns.Msg) er
3333
if question.Qclass != dns.ClassINET || question.Qtype != dns.TypeAAAA {
3434
return nil
3535
}
36-
synth, err := EmptyResponseFromMessage(msg)
37-
if err != nil {
38-
return err
39-
}
40-
pluginsState.synthResponse = synth
41-
pluginsState.action = PluginsActionSynth
36+
pluginsState.action = PluginsActionReject
4237
return nil
4338
}

0 commit comments

Comments
 (0)