utils: fix radb fetching lines too long for scanner buffer size, allow caching empty results

This commit is contained in:
WeebDataHoarder
2025-04-27 22:04:21 +02:00
parent b285c13e4c
commit b8bf35d4de
2 changed files with 9 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ func NewState(p policy.Policy, opt settings.Settings, settings policy.StateSetti
}
return nil, err
}
if useCache && networkCache != nil && len(prefixes) > 0 {
if useCache && networkCache != nil {
var l []string
for _, n := range prefixes {
l = append(l, n.String())