mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
fixed setting host_name or server_address in curl URL option
This commit is contained in:
parent
ac08e9b275
commit
cfb7dace54
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ check_http (void)
|
|||
|
||||
/* compose URL */
|
||||
snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s%s", use_ssl ? "https" : "http",
|
||||
host_name, server_url);
|
||||
host_name ? host_name : server_address, server_url);
|
||||
handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_URL, url), "CURLOPT_URL");
|
||||
|
||||
/* set port */
|
||||
|
|
|
|||
Loading…
Reference in a new issue