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: