Some tiny changes and new benchmark test function (#136)
This commit is contained in:
parent
1aa1a92198
commit
efd5135ee3
4 changed files with 45 additions and 4 deletions
3
middleware/cache/cache.go
vendored
3
middleware/cache/cache.go
vendored
|
@ -2,6 +2,7 @@ package cache
|
|||
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/miekg/coredns/middleware"
|
||||
|
@ -28,7 +29,7 @@ func cacheKey(m *dns.Msg, t middleware.MsgType, do bool) string {
|
|||
}
|
||||
|
||||
qtype := m.Question[0].Qtype
|
||||
qname := middleware.Name(m.Question[0].Name).Normalize()
|
||||
qname := strings.ToLower(m.Question[0].Name)
|
||||
switch t {
|
||||
case middleware.Success:
|
||||
fallthrough
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue