Agent: Use str(interface) instead of building string

This commit is contained in:
Kekoa Kaaikala 2022-08-30 11:58:57 +00:00
parent e6663747eb
commit fedfe4e45d
1 changed files with 2 additions and 2 deletions

View File

@ -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