From 6abcaa9bd65ccd6973f17f44ff8405a329fc0bc5 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 5 Sep 2022 20:03:17 -0400 Subject: [PATCH] Agent: Remove extra newline in RelayConnectionHandler --- .../infection_monkey/network/relay/relay_connection_handler.py | 1 - 1 file changed, 1 deletion(-) diff --git a/monkey/infection_monkey/network/relay/relay_connection_handler.py b/monkey/infection_monkey/network/relay/relay_connection_handler.py index 8f039488b..fe08a5a61 100644 --- a/monkey/infection_monkey/network/relay/relay_connection_handler.py +++ b/monkey/infection_monkey/network/relay/relay_connection_handler.py @@ -16,7 +16,6 @@ class RelayConnectionHandler: control_message = sock.recv(socket.MSG_PEEK) addr, _ = sock.getpeername() # TODO check the type of the addr object if control_message.startswith(RELAY_CONTROL_MESSAGE): - self._relay_user_handler.disconnect_user(IPv4Address(addr)) else: self._relay_user_handler.add_relay_user(IPv4Address(addr))