mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-16 02:18:28 -07:00
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,
|
||||
})
|
||||
for _, filter := range config.Filters {
|
||||
if !filter.Enabled {
|
||||
continue
|
||||
}
|
||||
filters = append(filters, dnsfilter.Filter{
|
||||
ID: filter.ID,
|
||||
FilePath: filter.Path(),
|
||||
|
Loading…
Reference in New Issue
Block a user