diff --git a/check_nginx_status.pl b/check_nginx_status.pl index 02b1c34..81e874d 100755 --- a/check_nginx_status.pl +++ b/check_nginx_status.pl @@ -215,7 +215,9 @@ sub check_options { ); if ( $o_disable_sslverifyhostname ) { - $ua->ssl_opts( 'verify_hostname' => 0 ); + $ua->ssl_opts( 'verify_hostname' => 0, + SSL_verify_mode => '0', + ); } # we need to enforce the HTTP request is made on the Nagios Host IP and