MT#21685 - fix fax remote host/port check

Change-Id: Ife7aaa8b4754d6dec2e1f422f4b2f7cc48299d3a
changes/28/7928/2
Kirill Solomko 9 years ago
parent 6d35b85a6b
commit 4b88ff43f3

@ -36,11 +36,12 @@ sub send_fax {
my $host = $hosts[rand @hosts];
if ($ping->ping($host)) {
$sendfax_args{host} = $host;
$sendfax_port{port} = $port;
$sendfax_args{port} = $port;
}
@hosts = grep { $_ ne $host } @hosts;
} while (!$sendfax_args{host} && @hosts);
die "No alive proxy hosts to queue the send fax to" unless @hosts;
die "No alive proxy hosts to queue the send fax to"
unless $sendfax_args{host} && $sendfax_args{port};
}
my $sender = 'webfax';

Loading…
Cancel
Save