From 1bf610a4a89a0d90a4cc6b10f48603c41db27dce Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Mon, 26 Sep 2022 19:51:14 +0000 Subject: [PATCH] Agent: Fix missing names --- .../network_scanning/scan_target_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/network_scanning/scan_target_generator.py b/monkey/infection_monkey/network_scanning/scan_target_generator.py index aef2cad30..d561dfd69 100644 --- a/monkey/infection_monkey/network_scanning/scan_target_generator.py +++ b/monkey/infection_monkey/network_scanning/scan_target_generator.py @@ -23,7 +23,7 @@ def compile_scan_target_list( scan_targets = _get_ips_from_subnets_to_scan(ranges_to_scan) if scan_my_networks: - scan_targets.extend(_get_ips_to_scan_from_interface(network_interfaces)) + scan_targets.extend(_get_ips_to_scan_from_interface(local_network_interfaces)) if inaccessible_subnets: inaccessible_subnets = _get_segmentation_check_targets( @@ -76,7 +76,7 @@ def _get_ips_from_ranges_to_scan(network_ranges: List[NetworkRange]) -> List[Net return scan_targets -def _get_ips_to_scan_from_local_interface( +def _get_ips_to_scan_from_interface( interfaces: List[IPv4Interface], ) -> List[NetworkAddress]: ranges = [str(interface) for interface in interfaces]