mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-27 17:16:40 -04:00
set hostname in for CURLOPT_CURL to virtual hostname in case of SSL (for SNI to work)
This commit is contained in:
parent
36fd675fbe
commit
faea5899ba
1 changed files with 1 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ check_http (void)
|
|||
/* compose URL: use the address we want to connect to, set Host: header later */
|
||||
snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s:%d%s",
|
||||
use_ssl ? "https" : "http",
|
||||
server_address,
|
||||
use_ssl ? host_name : server_address,
|
||||
server_port,
|
||||
server_url
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue