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

This commit is contained in:
Jordi Sanfeliu 2014-01-29 18:23:48 +01:00
parent 5a9566eb3d
commit 8f653d38cd
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ sub nginx_update {
my $url = "http://127.0.0.1:" . $nginx->{port} . "/nginx_status";
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', $url));
my $rrdata = "N";