Don't log blocked suffixes in reverse

This commit is contained in:
Frank Denis 2018-01-20 17:25:16 +01:00
parent 9a85a50efd
commit 4f0c36ac27
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}
}
}