mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
changed URL construction again, IP should preceed hostname, hostname set as Host: (makes sure we get the corrent DNS entry and server)
This commit is contained in:
parent
5d9104f07f
commit
efa7e2c1e7
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ check_http (void)
|
|||
|
||||
/* compose URL */
|
||||
snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s%s", use_ssl ? "https" : "http",
|
||||
host_name ? host_name : server_address, server_url);
|
||||
server_address ? server_address : host_name, server_url);
|
||||
handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_URL, url), "CURLOPT_URL");
|
||||
|
||||
/* set port */
|
||||
|
|
|
|||
Loading…
Reference in a new issue