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"] )