made fixed range actually load from configuration...

This commit is contained in:
acepace 2016-06-07 17:18:51 +03:00
parent 18ab440ec2
commit 61ff2ed740
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ class NetworkScanner(object):
LOG.info("Found local IP addresses of the machine: %r", self._ip_addresses)
# for fixed range, only scan once.
if WormConfiguration.range_class is FixedRange:
self._ranges = [WormConfiguration.range_class('0.0.0.0')]
self._ranges = [WormConfiguration.range_class(ip_address)
for ip_address in WormConfiguration.range_fixed]
else:
self._ranges = [WormConfiguration.range_class(ip_address)
for ip_address in self._ip_addresses]