mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-10154-no-funciona-la-vista-de-mapa-de-red-preliminar-desde-tarea-discovery' into 'develop'
Ent 10154 no funciona la vista de mapa de red preliminar desde tarea discovery See merge request artica/pandorafms!5415
This commit is contained in:
commit
24f219e2ce
@ -776,7 +776,7 @@ class NetworkMap
|
|||||||
// Search.
|
// Search.
|
||||||
if ($this->idTask) {
|
if ($this->idTask) {
|
||||||
// Network map, based on discovery task.
|
// Network map, based on discovery task.
|
||||||
return get_discovery_agents($this->idTask);
|
enterprise_hook('get_discovery_agents', [$this->idTask]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->network) {
|
if ($this->network) {
|
||||||
|
@ -4161,7 +4161,7 @@ function networkmap_get_new_nodes_and_links($networkmap, $x, $y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((int) $networkmap['source'] === SOURCE_TASK) {
|
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) {
|
} else if ((int) $networkmap['source'] === SOURCE_NETWORK) {
|
||||||
// Network map, based on direct network.
|
// Network map, based on direct network.
|
||||||
$agents = networkmap_get_nodes_from_ip_mask(
|
$agents = networkmap_get_nodes_from_ip_mask(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user