Compare filter lists index with semver

This commit is contained in:
Daniel 2021-03-10 17:11:11 +01:00
parent 6dba38ce42
commit ad359da437

View file

@ -189,7 +189,7 @@ func updateListIndex() error {
log.Info("filterlists: index not in cache, starting update")
case err != nil:
log.Warningf("filterlists: failed to load index from cache, starting update: %s", err)
case strings.TrimPrefix(index.Version, "v") != listIndexUpdate.Version():
case !listIndexUpdate.EqualsVersion(strings.TrimPrefix(index.Version, "v")):
log.Infof(
"filterlists: index from cache is outdated, starting update (%s != %s)",
strings.TrimPrefix(index.Version, "v"),