mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-08 16:26:23 -04:00
reverted hostname in URL, must use CURL_RESOLVE mayabe
This commit is contained in:
parent
7c74b772ed
commit
ac08e9b275
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue