Only error when target network list is not reachable

This commit is contained in:
WeebDataHoarder
2025-04-15 19:23:04 +02:00
parent b0aa9ff450
commit c84c67439e
2 changed files with 3 additions and 2 deletions

View File

@@ -189,7 +189,8 @@ func NewState(p policy.Policy, settings StateSettings) (handler http.Handler, er
}
prefixes, err := e.FetchPrefixes(state.Client)
if err != nil {
return nil, fmt.Errorf("networks %s: error fetching prefixes: %v", k, err)
slog.Error("error fetching network url list", "network", k, "url", *e.Url)
continue
}
for _, prefix := range prefixes {
err = ranger.Insert(cidranger.NewBasicRangerEntry(prefix))