+ whois, rdns: begin getting info for the most active clients on startup
This commit is contained in:
parent
418baa608f
commit
d75620fdc0
12
home/dns.go
12
home/dns.go
|
@ -60,6 +60,18 @@ func initDNSServer() {
|
|||
|
||||
config.dnsctx.rdns = InitRDNS(&config.clients)
|
||||
config.dnsctx.whois = initWhois(&config.clients)
|
||||
|
||||
topClients := config.stats.GetTopData(30)
|
||||
for _, ip := range topClients {
|
||||
ipAddr := net.ParseIP(ip)
|
||||
if !ipAddr.IsLoopback() {
|
||||
config.dnsctx.rdns.Begin(ip)
|
||||
}
|
||||
if isPublicIP(ipAddr) {
|
||||
config.dnsctx.whois.Begin(ip)
|
||||
}
|
||||
}
|
||||
|
||||
initFiltering()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue