- filters: auto-update didn't work

This commit is contained in:
Simon Zolin
2019-10-17 14:33:38 +03:00
parent c6b4e269ed
commit e2ff8628ad
2 changed files with 9 additions and 1 deletions

View File

@@ -230,6 +230,8 @@ func startDNSServer() error {
return errorx.Decorate(err, "Couldn't start forwarding DNS server")
}
startFiltering()
const topClientsNumber = 100 // the number of clients to get
topClients := config.stats.GetTopClientsIP(topClientsNumber)
for _, ip := range topClients {