Merge: - filter: don't reset name on update

* commit '2303bb253a94045a0d1d7853f7f0840571f03879':
  - filter: don't reset name on update
This commit is contained in:
Simon Zolin 2020-05-25 18:27:05 +03:00
commit 2f5073b720
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