mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Added support for the 'auto' ip_target.
(cherry picked from commit 72e4acb30a07ae1df98695c0ceecc3cee8e21a7c)
This commit is contained in:
parent
5fef13b97b
commit
2e6c53604f
@ -462,7 +462,7 @@ sub exec_network_module ($$$$) {
|
|||||||
my $retries = $module->{'max_retries'};
|
my $retries = $module->{'max_retries'};
|
||||||
|
|
||||||
# Use the agent address by default
|
# Use the agent address by default
|
||||||
if (! defined($ip_target) || $ip_target eq '') {
|
if (! defined($ip_target) || $ip_target eq '' || $ip_target eq 'auto') {
|
||||||
$ip_target = $agent_row->{'direccion'};
|
$ip_target = $agent_row->{'direccion'};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user