mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-26 15:05:50 +03:00
- app: don't print filter update error messages on first launch before
DNS server is set up
This commit is contained in:
parent
5c65d0cabe
commit
3087c54a15
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,10 @@ func periodicallyRefreshFilters() {
|
|||
func refreshFiltersIfNecessary(force bool) int {
|
||||
var updateFilters []filter
|
||||
|
||||
if config.firstRun {
|
||||
return 0
|
||||
}
|
||||
|
||||
config.RLock()
|
||||
for i := range config.Filters {
|
||||
f := &config.Filters[i] // otherwise we will be operating on a copy
|
||||
|
|
Loading…
Reference in a new issue