From 5331699559d8032cb12b934956d93f35c60126d5 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 24 Apr 2017 02:38:03 -0400 Subject: must use host_name and not server_address in URL, CN subject mismatch --- plugins/check_curl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 050c0d4c..87fa1da9 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -325,9 +325,9 @@ check_http (void) /* compose URL */ snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s%s", use_ssl ? "https" : "http", - server_address, server_url); + host_name, server_url); handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_URL, url), "CURLOPT_URL"); - + /* set port */ handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_PORT, server_port), "CURLOPT_PORT"); -- cgit v1.2.3-74-g34f1