- don't load filter rules if filter is disabled

This commit is contained in:
Simon Zolin 2019-07-15 12:33:02 +03:00
parent d4bbc45a39
commit e2b518339f
1 changed files with 3 additions and 0 deletions

View File

@ -179,6 +179,9 @@ func generateServerConfig() (dnsforward.ServerConfig, error) {
Data: userFilter.Data,
})
for _, filter := range config.Filters {
if !filter.Enabled {
continue
}
filters = append(filters, dnsfilter.Filter{
ID: filter.ID,
FilePath: filter.Path(),