diff --git a/home/filter.go b/home/filter.go index 73947336..c4c9273e 100644 --- a/home/filter.go +++ b/home/filter.go @@ -598,7 +598,7 @@ func (f *Filtering) updateIntl(filter *filter) (bool, error) { log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, total, rulesCount) - if filterName != "" { + if len(filter.Name) == 0 { filter.Name = filterName } filter.RulesCount = rulesCount