Skip to content

Commit

Permalink
Insecure HTTPS is needed on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvijge committed Sep 12, 2021
1 parent 1df6f8c commit 952f42b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ use constant API_MAX_ITEMS => 500;
# Which URLs should we catch when pasted into the "Tune In URL" field?
use constant PAGE_URL_REGEXP => qr{^https?://soundcloud\.com/};

use IO::Socket::SSL;
IO::Socket::SSL::set_defaults(
SSL_verify_mode => Net::SSLeay::VERIFY_NONE()
) if preferences('server')->get('insecureHTTPS');

my $log;
my $compat;

Expand Down
5 changes: 5 additions & 0 deletions ProtocolHandler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Slim::Player::ProtocolHandlers->registerHandler('soundcloud', __PACKAGE__);
use strict;
use base 'Slim::Player::Protocols::HTTP';

use IO::Socket::SSL;
IO::Socket::SSL::set_defaults(
SSL_verify_mode => Net::SSLeay::VERIFY_NONE()
) if preferences('server')->get('insecureHTTPS');

my $prefs = preferences('plugin.squeezecloud');

$prefs->init({ apiKey => "", playmethod => "stream" });
Expand Down

0 comments on commit 952f42b

Please sign in to comment.