Shortcut filters for the root zone
This commit is contained in:
parent
066db6a080
commit
0fe21b2d57
|
@ -135,6 +135,9 @@ func (plugin *PluginBlockName) Eval(pluginsState *PluginsState, msg *dns.Msg) er
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
qName := strings.ToLower(StripTrailingDot(questions[0].Name))
|
qName := strings.ToLower(StripTrailingDot(questions[0].Name))
|
||||||
|
if len(qName) < 2 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
revQname := StringReverse(qName)
|
revQname := StringReverse(qName)
|
||||||
reject, reason := false, ""
|
reject, reason := false, ""
|
||||||
if !reject {
|
if !reject {
|
||||||
|
|
Loading…
Reference in New Issue