* whois/rdns: process up to 100 top clients on startup

This commit is contained in:
Simon Zolin 2019-10-10 12:32:15 +03:00
parent 51f9d7e4df
commit 8676cabc42

View file

@ -75,7 +75,7 @@ func initDNSServer() {
config.dnsctx.rdns = InitRDNS(&config.clients)
config.dnsctx.whois = initWhois(&config.clients)
const topClientsNumber = 30 // the number of clients to get
const topClientsNumber = 100 // the number of clients to get
topClients := config.stats.GetTopClientsIP(topClientsNumber)
for _, ip := range topClients {
ipAddr := net.ParseIP(ip)