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

Commit f2d44b5

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,11 @@ 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+
(
1106+
self.listen_protocol_api_uri + self.listen_protocol_api_path
1107+
if self.listen_protocol == "API"
1108+
else None
1109+
),
11061110
)
11071111
connector_configuration = self.api.connector.register(self.connector)
11081112
self.connector_logger.info(

0 commit comments

Comments
 (0)