db_autopwn -I/-X fix for Ruby 1.9 (calling each() on a string). Now commas
are allowed in the host specs in general. git-svn-id: file:///home/svn/framework3/trunk@7124 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
65e57f209a
commit
50f2f90646
|
@ -661,7 +661,7 @@ class Db
|
||||||
def range_include?(ranges, addr)
|
def range_include?(ranges, addr)
|
||||||
|
|
||||||
ranges.each do |sets|
|
ranges.each do |sets|
|
||||||
sets.each do |set|
|
sets.split(',').each do |set|
|
||||||
rng = set.split('-').map{ |c| Rex::Socket::addr_atoi(c) }
|
rng = set.split('-').map{ |c| Rex::Socket::addr_atoi(c) }
|
||||||
tst = Rex::Socket::addr_atoi(addr)
|
tst = Rex::Socket::addr_atoi(addr)
|
||||||
if (tst >= rng[0] and tst <= rng[1])
|
if (tst >= rng[0] and tst <= rng[1])
|
||||||
|
|
Loading…
Reference in New Issue