Lowercase the question

This commit is contained in:
Frank Denis 2019-12-16 17:03:16 +01:00
parent 7066e53843
commit cba755b4d1
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package main
import (
"github.com/k-sone/critbitgo"
"github.com/miekg/dns"
"strings"
)
var undelegatedSet = []string{
@ -182,7 +183,7 @@ func (plugin *PluginBlockUndelegated) Eval(pluginsState *PluginsState, msg *dns.
if len(questions) != 1 {
return nil
}
revQname := StringReverse(questions[0].Name)
revQname := StringReverse(strings.ToLower(questions[0].Name))
match, _, found := plugin.suffixes.LongestPrefix([]byte(revQname))
if !found {
return nil