fix #11395, use db.hosts.each

Prefer iterating over hosts over the older method in the database.
GSoC/Meterpreter_Web_Console
Brent Cook 2019-02-13 18:04:50 -06:00
parent 5b83797c03
commit 5b213f36d5
1 changed files with 1 additions and 1 deletions

View File

@ -2377,7 +2377,7 @@ class Core
# List all hosts in the database # List all hosts in the database
else else
framework.db.each_host(framework.db.workspace) do |host| framework.db.hosts.each do |host|
res << host.address res << host.address
end end
end end