Bugfix in address lookup
This commit is contained in:
parent
74deebb280
commit
44b6c3d243
|
@ -1,7 +1,8 @@
|
||||||
import socket
|
|
||||||
import random
|
import random
|
||||||
|
import socket
|
||||||
import struct
|
import struct
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
|
|
||||||
from model.host import VictimHost
|
from model.host import VictimHost
|
||||||
|
|
||||||
__author__ = 'itamar'
|
__author__ = 'itamar'
|
||||||
|
@ -77,5 +78,5 @@ class FixedRange(NetworkRange):
|
||||||
for address in self._fixed_addresses:
|
for address in self._fixed_addresses:
|
||||||
if not address: # Empty string
|
if not address: # Empty string
|
||||||
continue
|
continue
|
||||||
address_range.append(struct.unpack(">L", socket.inet_aton(address))[0])
|
address_range.append(struct.unpack(">L", socket.inet_aton(address.strip()))[0])
|
||||||
return address_range
|
return address_range
|
||||||
|
|
Loading…
Reference in New Issue