Browse Source

fix dns stats not being recorded

master
Lyndsay Roger 9 years ago
parent
commit
10f79c85d1
  1. 2
      main.go

2
main.go

@ -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
} }

Loading…
Cancel
Save