Skip to content

Commit f7b8b70

Browse files
committed
Revert "AAAA filter: Reject instead of sending an empty response"
This reverts commit aceb8b3.
1 parent aceb8b3 commit f7b8b70

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

dnscrypt-proxy/plugin_block_ipv6.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ 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-
pluginsState.action = PluginsActionReject
36+
synth, err := EmptyResponseFromMessage(msg)
37+
if err != nil {
38+
return err
39+
}
40+
pluginsState.synthResponse = synth
41+
pluginsState.action = PluginsActionSynth
3742
return nil
3843
}

0 commit comments

Comments
 (0)