From 4f0c36ac270d62cc7cc1673192d2becfec002a9b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 20 Jan 2018 17:25:16 +0100 Subject: [PATCH] Don't log blocked suffixes in reverse --- dnscrypt-proxy/plugin_block_name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/plugin_block_name.go b/dnscrypt-proxy/plugin_block_name.go index 5f47945c..79b75354 100644 --- a/dnscrypt-proxy/plugin_block_name.go +++ b/dnscrypt-proxy/plugin_block_name.go @@ -144,7 +144,7 @@ func (plugin *PluginBlockName) Eval(pluginsState *PluginsState, msg *dns.Msg) er match, _, found := plugin.blockedSuffixes.Root().LongestPrefix([]byte(revQname)) if found { if len(match) == len(qName) || revQname[len(match)] == '.' { - reject, reason = true, "*"+string(match) + reject, reason = true, "*."+StringReverse(string(match)) } } }