From fedfe4e45dc9c1f1cb14817921c287d6f29e16b6 Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Tue, 30 Aug 2022 11:58:57 +0000 Subject: [PATCH] Agent: Use str(interface) instead of building string --- monkey/infection_monkey/monkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 7fccc7616..220eba1f8 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -241,8 +241,8 @@ class InfectionMonkey: @staticmethod def _get_local_network_interfaces() -> List[IPv4Interface]: local_network_interfaces = get_local_network_interfaces() - for i in local_network_interfaces: - logger.debug(f"Found local interface {str(i.ip)}/{i.network.prefixlen}") + for interface in local_network_interfaces: + logger.debug(f"Found local interface {str(interface)}") return local_network_interfaces