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:
Andreas Baumann 2017-04-28 08:39:13 +02:00 committed by Sven Nierlein
parent 5d9104f07f
commit efa7e2c1e7

View file

@ -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 */