diff --git a/lib/bind.pm b/lib/bind.pm index 974cfdb..0323096 100644 --- a/lib/bind.pm +++ b/lib/bind.pm @@ -298,6 +298,10 @@ sub bind_update { for($n = 0; $n < scalar(my @bl = split(',', $bind->{list})); $n++) { my $l = trim($bl[$n]); 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', $l)); my $data = XMLin($response->content); my $value;