From a4b6e2157ba1ac27e7c92c9a02d08262c156c34c Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 9 Sep 2022 14:28:14 +0200 Subject: [PATCH] Agent: Cast cmd_island_port to int --- monkey/infection_monkey/monkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 5deb5e966..4ddc8655c 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -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