Fix swapped out arguments in substring check
*example.com* was matching ample.com, not xxxexample.comxxx Fixes #14
This commit is contained in:
parent
4f42dd01a4
commit
5dd08fe56b
|
@ -156,7 +156,7 @@ func (plugin *PluginBlockName) Eval(pluginsState *PluginsState, msg *dns.Msg) er
|
|||
}
|
||||
if !reject {
|
||||
for _, substring := range plugin.blockedSubstrings {
|
||||
if strings.Contains(substring, qName) {
|
||||
if strings.Contains(qName, substring) {
|
||||
reject, reason = true, "*"+substring+"*"
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue