Don't log blocked suffixes in reverse
This commit is contained in:
parent
9a85a50efd
commit
4f0c36ac27
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue