fix: Use protocol setting for push as well

pull/22/head
Hannah Ward 2017-08-17 16:17:01 +01:00
parent 286a4df271
commit afd8a00c4e
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ while True:
# Push the package to TAXII
try:
cli.push(pkg.to_xml().decode("utf-8"), "urn:stix.mitre.org:xml:1.1.1",
uri="http://{}/services/inbox".format(config["domain"]),
uri="{}://{}/services/inbox".format(config.get("protocol", "http"), config["domain"]),
collection_names=config["taxii"].get("collections", ["collection"]))
log.info("Pushed!")