mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
HttpUtils.pm: try to avoid warning (Forum #70604)
git-svn-id: https://svn.fhem.de/fhem/trunk@13998 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cdd17c8e13
commit
1174531c7b
@ -348,7 +348,10 @@ HttpUtils_Connect2($)
|
||||
$par{SSL_version} = $sslVersion;
|
||||
$par{SSL_hostname} = $hash->{host}
|
||||
if(IO::Socket::SSL->can('can_client_sni') &&
|
||||
IO::Socket::SSL->can_client_sni());
|
||||
IO::Socket::SSL->can_client_sni() &&
|
||||
(!$hash->{sslargs} || !defined($hash->{sslargs}{SSL_hostname})));
|
||||
$par{SSL_verify_mode} = 0
|
||||
if(!$hash->{sslargs} || !defined($hash->{sslargs}{SSL_verify_mode}));
|
||||
IO::Socket::SSL->start_SSL($hash->{conn}, \%par) || undef $hash->{conn};
|
||||
$hash->{hu_sslAdded} = 1 if($hash->{keepalive});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user