Skip to content

Commit 9f34c45

Browse files
Added command to check status of announce
1 parent 3d919c2 commit 9f34c45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,9 @@ func main() {
480480
fast_logger.Printf("Successfully sent query")
481481
// Well, in case of success and when we send same announce as already existent one we will receive code 200 and "null" in response
482482
// I asked folks to improve it
483+
// We can use this command to check status of announce:
484+
// curl -H 'Content-Type: application/json' 'https://api.gcore.com/security/sifter/v2/protected_addresses/announces' -H 'Authorization: ApiKey xxx
485+
// Example answer: [{"client_id":1234,"announced":[],"not_announced":["10.1.2.0/24"]}]
483486
} else {
484487
fast_logger.Fatalf("Unknown provider name, we support only 'f5' or 'path': %s", conf.Provider_name)
485488
}

0 commit comments

Comments
 (0)