[monitoring-plugins] reverted hostname in URL, must use CURL_RESOLVE ...
Andreas Baumann
git at monitoring-plugins.org
Mon Apr 24 09:00:13 CEST 2017
Module: monitoring-plugins
Branch: feature_check_curl
Commit: 114020c6aa99e95dcf184fd31956cd1d8978e4ae
Author: Andreas Baumann <mail at andreasbaumann.cc>
Date: Mon Apr 24 02:55:11 2017 -0400
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=114020c
reverted hostname in URL, must use CURL_RESOLVE mayabe
---
plugins/check_curl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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");
More information about the Commits
mailing list