mirror of
https://github.com/twisterarmy/dnsseeder.git
synced 2025-09-08 04:02:04 +00:00
fix dns stats not being recorded
This commit is contained in:
parent
9b5240c03b
commit
10f79c85d1
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…
x
Reference in New Issue
Block a user