utils: fix radb fetching lines too long for scanner buffer size, allow caching empty results
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user