new: Added ability to set collections
parent
c2846fd5d9
commit
e271c95979
|
@ -29,3 +29,10 @@ zmq:
|
|||
misp:
|
||||
url: "http://localhost"
|
||||
api: KEY
|
||||
|
||||
taxii:
|
||||
auth:
|
||||
username: ABC
|
||||
password: CDE
|
||||
collections:
|
||||
- collection
|
||||
|
|
|
@ -75,7 +75,7 @@ while True:
|
|||
try:
|
||||
cli.push(pkg.to_xml().decode("utf-8"), "urn:stix.mitre.org:xml:1.1.1",
|
||||
uri="http://{}/services/inbox".format(config["domain"]),
|
||||
collection_names=["collection"])
|
||||
collection_names=config["taxii"].get("collections", ["collection"]))
|
||||
|
||||
log.info("Pushed!")
|
||||
except Exception as ex:
|
||||
|
|
Loading…
Reference in New Issue