#10154 Fixed get_discovery_agents

This commit is contained in:
Daniel Maya 2023-01-16 13:00:10 +01:00
parent 0722503253
commit d56460c8de
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ class NetworkMap
// Search.
if ($this->idTask) {
// Network map, based on discovery task.
return get_discovery_agents($this->idTask);
enterprise_hook('get_discovery_agents', [$this->idTask]);
}
if ($this->network) {

View File

@ -4161,7 +4161,7 @@ function networkmap_get_new_nodes_and_links($networkmap, $x, $y)
}
if ((int) $networkmap['source'] === SOURCE_TASK) {
$agents = get_discovery_agents($id_recon, true);
$agents = enterprise_hook('get_discovery_agents', [$id_recon, true]);
} else if ((int) $networkmap['source'] === SOURCE_NETWORK) {
// Network map, based on direct network.
$agents = networkmap_get_nodes_from_ip_mask(