don't bother checking for an address if our range is empty
git-svn-id: file:///home/svn/framework3/trunk@7779 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
48c8b35b5a
commit
e0bd6dd6ed
|
@ -109,6 +109,7 @@ class RangeWalker
|
|||
# the stored ranges.
|
||||
#
|
||||
def include?(addr)
|
||||
return false if not @ranges
|
||||
if (addr.is_a? String)
|
||||
addr = Rex::Socket.addr_atoi(addr)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue