Don't block '.'

This commit is contained in:
Frank Denis 2019-12-10 00:03:41 +01:00
parent 5d396d5f52
commit 279d5619e3
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func (plugin *PluginBlockUnqualified) Eval(pluginsState *PluginsState, msg *dns.
}
qName := questions[0].Name
idx := strings.IndexByte(qName, '.')
if idx == -1 || idx+1 != len(qName) {
if idx == -1 || (idx == 0 || idx+1 != len(qName)) {
return nil
}
synth := EmptyResponseFromMessage(msg)