2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

TcpServerUtils.pm: Log "ssl accept attempt failed" with level 5 (Forum #134820)

git-svn-id: https://svn.fhem.de/fhem/trunk@27931 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-09-04 09:52:58 +00:00
parent b02b65d852
commit 01ff6b5a78

View File

@ -331,10 +331,10 @@ TcpServer_Accept($$)
&& $err ne "Socket is not connected") {
$err = "" if(!$err);
$err .= " ".($SSL_ERROR ? $SSL_ERROR : IO::Socket::SSL::errstr());
my $errLevel = ($err =~ m/error:14094416:SSL/ ? 5 : 1); # 61511
my $errLevel = ($err =~ m/error:14094416:SSL/ || # 61511
$err =~ m/ssl accept attempt failed/i ? 5 : 1); #134820
Log3 $name, $errLevel, "$type SSL/HTTPS error: $err (peer: $caddr)"
if($err !~ m/error:00000000:lib.0.:func.0.:reason.0./ && #56364
$err !~ m/sslv3 alert certificate unknown/); #134820
if($err !~ m/error:00000000:lib.0.:func.0.:reason.0./); #56364
close($clientinfo[0]);
return undef;
}