Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 5311515

Browse files
committed
[client] do not register API listening URI when using AMQP protocol
1 parent b03f40b commit 5311515

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,9 @@ def __init__(self, config: Dict, playbook_compatible=False) -> None:
11021102
self.connect_auto,
11031103
self.connect_only_contextual,
11041104
playbook_compatible,
1105-
self.listen_protocol_api_uri + self.listen_protocol_api_path,
1105+
(self.listen_protocol_api_uri + self.listen_protocol_api_path
1106+
if self.listen_protocol == "API"
1107+
else None),
11061108
)
11071109
connector_configuration = self.api.connector.register(self.connector)
11081110
self.connector_logger.info(

0 commit comments

Comments
 (0)