mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-23 13:35:38 +03: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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue