made fixed range actually load from configuration...
This commit is contained in:
parent
18ab440ec2
commit
61ff2ed740
|
@ -27,7 +27,8 @@ class NetworkScanner(object):
|
||||||
LOG.info("Found local IP addresses of the machine: %r", self._ip_addresses)
|
LOG.info("Found local IP addresses of the machine: %r", self._ip_addresses)
|
||||||
# for fixed range, only scan once.
|
# for fixed range, only scan once.
|
||||||
if WormConfiguration.range_class is FixedRange:
|
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:
|
else:
|
||||||
self._ranges = [WormConfiguration.range_class(ip_address)
|
self._ranges = [WormConfiguration.range_class(ip_address)
|
||||||
for ip_address in self._ip_addresses]
|
for ip_address in self._ip_addresses]
|
||||||
|
|
Loading…
Reference in New Issue