process each individual id returned from ranges

GSoC/Meterpreter_Web_Console
Jeffrey Martin 2019-02-19 15:43:26 -06:00
parent 25743e1346
commit 33948eb5c4
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ module Msf::Ui::Console::CommandDispatcher::Analyze
break if !host_search.nil? && host_search.empty?
eval_hosts_ids = framework.db.hosts(address: host_search).map(&:id)
if eval_hosts_ids
host_ids.push(eval_hosts_ids)
eval_hosts_ids.each do |eval_id|
host_ids.push(eval_id)
end
end
end