From 10f79c85d1ae22643b9c9743adb02980ed20be42 Mon Sep 17 00:00:00 2001 From: Lyndsay Roger Date: Tue, 8 Sep 2015 12:58:19 +1200 Subject: [PATCH] fix dns stats not being recorded --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4c4dafb..689c68e 100644 --- a/main.go +++ b/main.go @@ -203,7 +203,7 @@ func updateDNSCounts(name, qtype string) { for _, s := range config.seeders { s.counts.mtx.Lock() - if name == s.dnsHost || name == "nonstd."+s.dnsHost { + if name == s.dnsHost+"." || name == "nonstd."+s.dnsHost+"." { s.counts.DNSCounts[ndType]++ counted = true }