simplify check
parent
0b4d67a978
commit
287667d4f7
|
@ -123,7 +123,7 @@ class Auxiliary
|
||||||
jobify = true
|
jobify = true
|
||||||
end
|
end
|
||||||
|
|
||||||
unless mod.datastore['RHOSTS'].nil?
|
if mod.datastore['RHOSTS']
|
||||||
rhosts_range = Rex::Socket::RangeWalker.new(mod.datastore['RHOSTS'])
|
rhosts_range = Rex::Socket::RangeWalker.new(mod.datastore['RHOSTS'])
|
||||||
unless rhosts_range && rhosts_range.length
|
unless rhosts_range && rhosts_range.length
|
||||||
print_error("Auxiliary failed: option RHOSTS failed to validate.")
|
print_error("Auxiliary failed: option RHOSTS failed to validate.")
|
||||||
|
|
Loading…
Reference in New Issue