This commit is contained in:
Jonathan 2024-05-24 11:39:53 +02:00
parent 61040b7991
commit 23282e0ca3
1 changed files with 9 additions and 0 deletions

View File

@ -3887,6 +3887,11 @@ function events_get_response_target(
}
}
if (is_metaconsole() === true && (int) $server_id > 0) {
$node = new Node($server_id);
$node->connect();
}
// Replace macros.
if (strpos($target, '_agent_alias_') !== false) {
$agente_table_name = 'tagente';
@ -4248,6 +4253,10 @@ function events_get_response_target(
);
}
if (is_metaconsole() === true && $server_id > 0) {
$node->disconnect();
}
return $target;
}