mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
fix protocols x509 certificate mode
This commit is contained in:
parent
48a89eb8b9
commit
d4d7caf91a
@ -170,8 +170,8 @@ sub manage_selection {
|
|||||||
$socket = IO::Socket::SSL->new(
|
$socket = IO::Socket::SSL->new(
|
||||||
PeerHost => $self->{option_results}->{hostname},
|
PeerHost => $self->{option_results}->{hostname},
|
||||||
PeerPort => $self->{option_results}->{port},
|
PeerPort => $self->{option_results}->{port},
|
||||||
$self->{option_results}->{servername} ? ( SSL_hostname => $self->{option_results}->{servername} ) : '',
|
$self->{option_results}->{servername} ? ( SSL_hostname => $self->{option_results}->{servername} ) : (),
|
||||||
$self->{option_results}->{timeout} ? ( Timeout => $self->{option_results}->{timeout} ) : '',
|
$self->{option_results}->{timeout} ? ( Timeout => $self->{option_results}->{timeout} ) : (),
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user