summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-11-12 10:25:08 -0500
committerAndreas Baumann <mail@andreasbaumann.cc>2018-11-12 10:25:08 -0500
commitfaea5899ba3264581bf75649e4b399d0b69bd125 (patch)
tree07ab722a438dcbd174853d4dcf13e4c8762d8218 /plugins/check_curl.c
parent36fd675fbe02f2492c4adbb001da38856f96c2f2 (diff)
downloadmonitoring-plugins-faea5899ba3264581bf75649e4b399d0b69bd125.tar.gz
set hostname in for CURLOPT_CURL to virtual hostname in case of SSL (for SNI to work)
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 58f454b8..637e9ba3 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -368,7 +368,7 @@ check_http (void)
368 /* compose URL: use the address we want to connect to, set Host: header later */ 368 /* compose URL: use the address we want to connect to, set Host: header later */
369 snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s:%d%s", 369 snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s:%d%s",
370 use_ssl ? "https" : "http", 370 use_ssl ? "https" : "http",
371 server_address, 371 use_ssl ? host_name : server_address,
372 server_port, 372 server_port,
373 server_url 373 server_url
374 ); 374 );