propagate the support of the new 'accept_selfsigned_certs' option to 'icecast' module. #40

This commit is contained in:
Jordi Sanfeliu 2014-01-29 18:22:16 +01:00
parent 8993df021c
commit 2b15427c44
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,10 @@ sub icecast_update {
foreach(my @il = split(',', $icecast->{list})) {
my $ils = trim($il[$e]);
my $ua = LWP::UserAgent->new(timeout => 30);
$ua->ssl_opts(verify_hostname => 0)
if lc($config->{accept_selfsigned_certs}) eq "y";
my $response = $ua->request(HTTP::Request->new('GET', $ils));
my $data = $response->content;