Agent: Cast cmd_island_port to int

This commit is contained in:
Ilija Lazoroski 2022-09-09 14:28:14 +02:00
parent 2b4b462c1a
commit a4b6e2157b
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class InfectionMonkey:
server = self._get_server()
# TODO: `address_to_port()` should return the port as an integer.
self._cmd_island_ip, self._cmd_island_port = address_to_ip_port(server)
self._cmd_island_ip = int(self._cmd_island_ip)
self._cmd_island_port = int(self._cmd_island_port)
self._control_client = ControlClient(server_address=server)
# TODO Refactor the telemetry messengers to accept control client