summaryrefslogtreecommitdiffstats
path: root/src/aclk/https_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/aclk/https_client.c')
-rw-r--r--src/aclk/https_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aclk/https_client.c b/src/aclk/https_client.c
index 2bc768f24..8c44f13e3 100644
--- a/src/aclk/https_client.c
+++ b/src/aclk/https_client.c
@@ -696,7 +696,7 @@ int https_request(https_req_t *request, https_req_response_t *response) {
goto exit_CTX;
}
- if (!SSL_set_tlsext_host_name(ctx->ssl, connect_host)) {
+ if (!SSL_set_tlsext_host_name(ctx->ssl, request->host)) {
netdata_log_error("Error setting TLS SNI host");
goto exit_CTX;
}