From c4ec6683a1de6195e77c31e617d42d3cb56c26d3 Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Sun, 22 Sep 2019 16:44:20 +0300 Subject: [PATCH] Silly bugfix in scanning --- monkey/infection_monkey/network/network_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/network/network_scanner.py b/monkey/infection_monkey/network/network_scanner.py index fb2b5269e..c807a2fe3 100644 --- a/monkey/infection_monkey/network/network_scanner.py +++ b/monkey/infection_monkey/network/network_scanner.py @@ -144,7 +144,7 @@ class NetworkScanner(object): :return: Victim or None if victim isn't alive """ LOG.debug("Scanning target address: %r", victim) - if any([scanner.is_host_alive(victim.ip_addr) for scanner in self.scanners]): + if any([scanner.is_host_alive(victim) for scanner in self.scanners]): LOG.debug("Found potential target_ip: %r", victim) return victim else: