diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-04-24 02:55:11 -0400 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-04-24 02:55:11 -0400 |
| commit | 114020c6aa99e95dcf184fd31956cd1d8978e4ae (patch) | |
| tree | cb683b4546e9cfa518e41a082156fa64ae1378f7 | |
| parent | 5331699559d8032cb12b934956d93f35c60126d5 (diff) | |
| download | monitoring-plugins-114020c.tar.gz | |
reverted hostname in URL, must use CURL_RESOLVE mayabe
| -rw-r--r-- | plugins/check_curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 87fa1da9..e26d8d3f 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
| @@ -327,7 +327,7 @@ check_http (void) | |||
| 327 | snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s%s", use_ssl ? "https" : "http", | 327 | snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s%s", use_ssl ? "https" : "http", |
| 328 | host_name, server_url); | 328 | host_name, server_url); |
| 329 | handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_URL, url), "CURLOPT_URL"); | 329 | handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_URL, url), "CURLOPT_URL"); |
| 330 | 330 | ||
| 331 | /* set port */ | 331 | /* set port */ |
| 332 | handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_PORT, server_port), "CURLOPT_PORT"); | 332 | handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_PORT, server_port), "CURLOPT_PORT"); |
| 333 | 333 | ||
