Merge: - don't load filter rules if filter is disabled
Close #879 * commit 'e2b518339fe6c14bb29008ad1638244e2f0fb3f8': - don't load filter rules if filter is disabled
This commit is contained in:
commit
c81c79aad7
|
@ -179,6 +179,9 @@ func generateServerConfig() (dnsforward.ServerConfig, error) {
|
||||||
Data: userFilter.Data,
|
Data: userFilter.Data,
|
||||||
})
|
})
|
||||||
for _, filter := range config.Filters {
|
for _, filter := range config.Filters {
|
||||||
|
if !filter.Enabled {
|
||||||
|
continue
|
||||||
|
}
|
||||||
filters = append(filters, dnsfilter.Filter{
|
filters = append(filters, dnsfilter.Filter{
|
||||||
ID: filter.ID,
|
ID: filter.ID,
|
||||||
FilePath: filter.Path(),
|
FilePath: filter.Path(),
|
||||||
|
|
Loading…
Reference in New Issue