From 286a4df2712aa02f311d3b02e248b12aa9731cc1 Mon Sep 17 00:00:00 2001 From: Hannah Ward Date: Thu, 17 Aug 2017 16:14:06 +0100 Subject: [PATCH] chg: Use optional https --- scripts/push_published_to_taxii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/push_published_to_taxii.py b/scripts/push_published_to_taxii.py index 8c4dc36..b18d5da 100644 --- a/scripts/push_published_to_taxii.py +++ b/scripts/push_published_to_taxii.py @@ -38,7 +38,7 @@ socket.connect("tcp://{}:{}".format( socket.setsockopt_string(zmq.SUBSCRIBE, '') # Connct to TAXII as well -cli = create_client(discovery_path="http://{}/services/discovery".format(config["domain"])) +cli = create_client(discovery_path="{}://{}/services/discovery".format(config.get("protocol", "http"), config["domain"])) cli.set_auth(username = config["taxii"]["auth"]["username"], password = config["taxii"]["auth"]["password"] )