From 7edb15d825870d9112aaf11977dc4c103118474c Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 6 Sep 2022 14:43:23 -0400 Subject: [PATCH] Agent: Fix host/port initialization in TCPConnectionHandler --- .../infection_monkey/network/relay/tcp_connection_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/network/relay/tcp_connection_handler.py b/monkey/infection_monkey/network/relay/tcp_connection_handler.py index 4515e364e..b6deac0ed 100644 --- a/monkey/infection_monkey/network/relay/tcp_connection_handler.py +++ b/monkey/infection_monkey/network/relay/tcp_connection_handler.py @@ -16,8 +16,8 @@ class TCPConnectionHandler(Thread, InterruptableThreadMixin): bind_port: int, client_connected: List[Callable[[socket.socket], None]] = [], ): - self.local_port = bind_port - self.local_host = bind_host + self.bind_host = bind_host + self.bind_port = bind_port self._client_connected = client_connected super().__init__(name="TCPConnectionHandler", daemon=True)