From ac08e9b2751a93dd65b5b66b59063f098ef2dc26 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 24 Apr 2017 02:55:11 -0400 Subject: reverted hostname in URL, must use CURL_RESOLVE mayabe diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 87fa1da..e26d8d3 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -327,7 +327,7 @@ check_http (void) snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s%s", use_ssl ? "https" : "http", 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 v0.10-9-g596f