Agent: Pass the correct agent ID to ControlChannel

This commit is contained in:
Mike Salvatore 2022-09-23 11:25:08 -04:00
parent 5ec0f2dbd2
commit feb8288c98
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class InfectionMonkey:
self._control_client = ControlClient(
server_address=server, island_api_client=self._island_api_client
)
self._control_channel = ControlChannel(server, GUID, self._island_api_client)
self._control_channel = ControlChannel(server, get_agent_id(), self._island_api_client)
self._register_agent(server)
# TODO Refactor the telemetry messengers to accept control client