From b787c5ed5aa9b2627407caef70c6fd580aa230e7 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 29 Jan 2014 18:26:46 +0100 Subject: [PATCH] propagate the support of the new 'accept_selfsigned_certs' option to 'wowza' module. #40 --- lib/wowza.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wowza.pm b/lib/wowza.pm index 62f3c83..220b26d 100644 --- a/lib/wowza.pm +++ b/lib/wowza.pm @@ -266,6 +266,10 @@ sub wowza_update { foreach(my @wl = split(',', $wowza->{list})) { my $wls = trim($wl[$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', $wls)); my $data = XMLin($response->content);