* use urlfilter v0.4.0

Now we pass filtering rules to urlfilter as filer file names,
 rather than the list of rule strings.
(Note: user rules are still passed as the list of rule strings).

As a result, we don't store the contents of filter files in memory.
This commit is contained in:
Simon Zolin
2019-07-04 14:00:20 +03:00
parent ceac4cbdd5
commit 134d9275bb
6 changed files with 51 additions and 22 deletions

View File

@@ -180,8 +180,8 @@ func generateServerConfig() dnsforward.ServerConfig {
})
for _, filter := range config.Filters {
filters = append(filters, dnsfilter.Filter{
ID: filter.ID,
Data: filter.Data,
ID: filter.ID,
FilePath: filter.Path(),
})
}