forked from p15670423/monkey
Agent: Use str(interface) instead of building string
This commit is contained in:
parent
e6663747eb
commit
fedfe4e45d
|
@ -241,8 +241,8 @@ class InfectionMonkey:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_local_network_interfaces() -> List[IPv4Interface]:
|
def _get_local_network_interfaces() -> List[IPv4Interface]:
|
||||||
local_network_interfaces = get_local_network_interfaces()
|
local_network_interfaces = get_local_network_interfaces()
|
||||||
for i in local_network_interfaces:
|
for interface in local_network_interfaces:
|
||||||
logger.debug(f"Found local interface {str(i.ip)}/{i.network.prefixlen}")
|
logger.debug(f"Found local interface {str(interface)}")
|
||||||
|
|
||||||
return local_network_interfaces
|
return local_network_interfaces
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue