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

Loading…
Cancel
Save