* whois/rdns: process up to 100 top clients on startup
This commit is contained in:
parent
51f9d7e4df
commit
8676cabc42
@ -75,7 +75,7 @@ func initDNSServer() {
|
|||||||
config.dnsctx.rdns = InitRDNS(&config.clients)
|
config.dnsctx.rdns = InitRDNS(&config.clients)
|
||||||
config.dnsctx.whois = initWhois(&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)
|
topClients := config.stats.GetTopClientsIP(topClientsNumber)
|
||||||
for _, ip := range topClients {
|
for _, ip := range topClients {
|
||||||
ipAddr := net.ParseIP(ip)
|
ipAddr := net.ParseIP(ip)
|
||||||
|
Loading…
Reference in New Issue
Block a user