ci: check example policy files

cmd: add check parameter
This commit is contained in:
WeebDataHoarder
2025-04-23 20:34:57 +02:00
parent 6bb7ca979d
commit 57755112ea
4 changed files with 88 additions and 32 deletions

View File

@@ -128,6 +128,7 @@ func NewState(p policy.Policy, settings policy.Settings) (handler http.Handler,
cacheKey := fmt.Sprintf("%s-%d", k, i)
var cached []net.IPNet
if useCache && networkCache != nil {
//TODO: add randomness
cachedData, err := networkCache.Get(cacheKey, time.Hour*24)
var l []string
_ = json.Unmarshal(cachedData, &l)