fix dns stats not being recorded

This commit is contained in:
Lyndsay Roger 2015-09-08 12:58:19 +12:00
parent 9b5240c03b
commit 10f79c85d1

View File

@ -203,7 +203,7 @@ func updateDNSCounts(name, qtype string) {
for _, s := range config.seeders { for _, s := range config.seeders {
s.counts.mtx.Lock() s.counts.mtx.Lock()
if name == s.dnsHost || name == "nonstd."+s.dnsHost { if name == s.dnsHost+"." || name == "nonstd."+s.dnsHost+"." {
s.counts.DNSCounts[ndType]++ s.counts.DNSCounts[ndType]++
counted = true counted = true
} }