mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Compare filter lists index with semver
This commit is contained in:
parent
6dba38ce42
commit
ad359da437
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ func updateListIndex() error {
|
||||||
log.Info("filterlists: index not in cache, starting update")
|
log.Info("filterlists: index not in cache, starting update")
|
||||||
case err != nil:
|
case err != nil:
|
||||||
log.Warningf("filterlists: failed to load index from cache, starting update: %s", err)
|
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(
|
log.Infof(
|
||||||
"filterlists: index from cache is outdated, starting update (%s != %s)",
|
"filterlists: index from cache is outdated, starting update (%s != %s)",
|
||||||
strings.TrimPrefix(index.Version, "v"),
|
strings.TrimPrefix(index.Version, "v"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue