Skip to content

Commit f80c16e

Browse files
committed
Slightly change the way we block ipv6
1 parent f7b8b70 commit f80c16e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dnscrypt-proxy/plugin_block_ipv6.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ func (plugin *PluginBlockIPv6) Eval(pluginsState *PluginsState, msg *dns.Msg) er
3737
if err != nil {
3838
return err
3939
}
40+
hinfo := new(dns.HINFO)
41+
hinfo.Hdr = dns.RR_Header{Name: question.Name, Rrtype: dns.TypeHINFO,
42+
Class: dns.ClassINET, Ttl: 86400}
43+
hinfo.Cpu = "AAAA queries have been locally blocked by dnscrypt-proxy"
44+
hinfo.Os = "Set block_ipv6 to false to disable this feature"
45+
synth.Answer = []dns.RR{hinfo}
4046
pluginsState.synthResponse = synth
4147
pluginsState.action = PluginsActionSynth
4248
return nil

0 commit comments

Comments
 (0)