- filter: don't reset name on update

This commit is contained in:
Simon Zolin 2020-05-25 17:13:13 +03:00
parent 6f3cd4e7eb
commit 2303bb253a
1 changed files with 1 additions and 1 deletions

View File

@ -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