fix #11395, use db.hosts.each
Prefer iterating over hosts over the older method in the database.GSoC/Meterpreter_Web_Console
parent
5b83797c03
commit
5b213f36d5
|
@ -2377,7 +2377,7 @@ class Core
|
|||
|
||||
# List all hosts in the database
|
||||
else
|
||||
framework.db.each_host(framework.db.workspace) do |host|
|
||||
framework.db.hosts.each do |host|
|
||||
res << host.address
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue