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-b9f4589650da
unstable
James Lee 2009-12-09 21:28:44 +00:00
parent 48c8b35b5a
commit e0bd6dd6ed
1 changed files with 1 additions and 0 deletions

View File

@ -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