mirror of https://github.com/mikaku/Monitorix.git
propagate the support of the new 'accept_selfsigned_certs' option to 'wowza' module. #40
This commit is contained in:
parent
68de6f34f5
commit
b787c5ed5a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue