From e61d5a3034f1bb673cbd699935320c373d563c8f Mon Sep 17 00:00:00 2001 From: blotus Date: Thu, 29 Jun 2023 11:06:49 +0200 Subject: [PATCH] rename status to state in fire response (#2313) --- pkg/cticlient/example/fire.go | 3 +++ pkg/cticlient/types.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cticlient/example/fire.go b/pkg/cticlient/example/fire.go index 7bcf814a0..e52922571 100644 --- a/pkg/cticlient/example/fire.go +++ b/pkg/cticlient/example/fire.go @@ -44,6 +44,9 @@ func main() { } for _, item := range items { + if item.State == "refused" { + continue + } banDuration := time.Until(item.Expiration.Time) allItems = append(allItems, []string{ item.Ip, diff --git a/pkg/cticlient/types.go b/pkg/cticlient/types.go index 1d6550d00..2ad0a6eb3 100644 --- a/pkg/cticlient/types.go +++ b/pkg/cticlient/types.go @@ -120,7 +120,7 @@ type FireItem struct { BackgroundNoiseScore *int `json:"background_noise_score"` Scores CTIScores `json:"scores"` References []CTIReferences `json:"references"` - Status string `json:"status"` + State string `json:"state"` Expiration CustomTime `json:"expiration"` }