Skip to content

Commit

Permalink
Don't crash the Perl module reporting if we lack SSL support
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Aug 21, 2024
1 parent 3cee6fb commit cc86f78
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Slim/Menu/SystemInfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -362,22 +362,30 @@ sub infoPerl {
type => 'text',
name => 'DBD::SQLite' . cstring($client, 'COLON') . " $DBD::SQLite::VERSION (sqlite " . Slim::Utils::Cache->new()->{_cache}->{dbh}->{sqlite_version} . ')'
},
];

{
if ( Slim::Networking::Async::HTTP->hasSSL() ) {
push @{$items}, {
type => 'text',
name => 'IO::Socket::SSL' . cstring($client, 'COLON') . ' ' . (Slim::Networking::Async::HTTP->hasSSL() ? $IO::Socket::SSL::VERSION : cstring($client, 'BLANK')),
name => 'IO::Socket::SSL' . cstring($client, 'COLON') . ' ' . $IO::Socket::SSL::VERSION,
},

{
type => 'text',
name => 'Mozilla::CA' . cstring($client, 'COLON') . ' ' . $Mozilla::CA::VERSION,
name => 'Mozilla::CA' . cstring($client, 'COLON') . ' ' . ($Mozilla::CA::VERSION || cstring($client, 'UNK')),
},

{
type => 'text',
name => sprintf("Net::SSLeay%s %s - %s", cstring($client, 'COLON'), $Net::SSLeay::VERSION, Net::SSLeay::SSLeay_version(Net::SSLeay::SSLEAY_VERSION())),
},
];
};
}
else {
push @{$items}, {
type => 'text',
name => 'IO::Socket::SSL' . cstring($client, 'COLON') . ' ' . cstring($client, 'BLANK'),
};
}

if ( Slim::Utils::OSDetect->getOS->sqlHelperClass() =~ /MySQL/i ) {
splice(@{$items}, 5, 0, {
Expand Down

0 comments on commit cc86f78

Please sign in to comment.