Added support for the 'auto' ip_target.

(cherry picked from commit 72e4acb30a07ae1df98695c0ceecc3cee8e21a7c)
This commit is contained in:
Ramon Novoa 2016-11-21 11:44:08 +01:00
parent 5fef13b97b
commit 2e6c53604f

View File

@ -462,7 +462,7 @@ sub exec_network_module ($$$$) {
my $retries = $module->{'max_retries'};
# 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'};
}