2011-08-10 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/NetworkServer.pm: Added support for IPv6 tcp check. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4695 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
59d85fe496
commit
e4061efe6c
|
@ -1,3 +1,7 @@
|
|||
2011-08-10 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* lib/PandoraFMS/NetworkServer.pm: Added support for IPv6 tcp check.
|
||||
|
||||
2011-08-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* DEBIAN/control: fixed the name of package and update version number.
|
||||
|
|
|
@ -24,7 +24,7 @@ use threads;
|
|||
use threads::shared;
|
||||
use Thread::Semaphore;
|
||||
|
||||
use IO::Socket::INET;
|
||||
use IO::Socket::INET6;
|
||||
use HTML::Entities;
|
||||
use POSIX qw(strftime);
|
||||
|
||||
|
@ -161,11 +161,12 @@ sub pandora_query_tcp ($$$$$$$$) {
|
|||
for ($counter =0; $counter < $pa_config->{'tcp_checks'}; $counter++){
|
||||
my $temp; my $temp2;
|
||||
my $tam;
|
||||
my $handle=IO::Socket::INET->new(
|
||||
my $handle=IO::Socket::INET6->new(
|
||||
Proto=>"tcp",
|
||||
PeerAddr=>$ip_target,
|
||||
Timeout=>$pa_config->{'tcp_timeout'},
|
||||
PeerPort=>$tcp_port,
|
||||
Multihomed=>1,
|
||||
Blocking=>0 ); # Non blocking !!, very important !
|
||||
|
||||
if (defined ($handle)){
|
||||
|
|
Loading…
Reference in New Issue