- 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
|
@ -178,6 +178,10 @@ func periodicallyRefreshFilters() {
|
||||||
func refreshFiltersIfNecessary(force bool) int {
|
func refreshFiltersIfNecessary(force bool) int {
|
||||||
var updateFilters []filter
|
var updateFilters []filter
|
||||||
|
|
||||||
|
if config.firstRun {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
config.RLock()
|
config.RLock()
|
||||||
for i := range config.Filters {
|
for i := range config.Filters {
|
||||||
f := &config.Filters[i] // otherwise we will be operating on a copy
|
f := &config.Filters[i] // otherwise we will be operating on a copy
|
||||||
|
|
Loading…
Reference in New Issue