summaryrefslogtreecommitdiffstats
path: root/exporting/prometheus/remote_write/remote_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'exporting/prometheus/remote_write/remote_write.c')
-rw-r--r--exporting/prometheus/remote_write/remote_write.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/exporting/prometheus/remote_write/remote_write.c b/exporting/prometheus/remote_write/remote_write.c
index 1857ca333..660b798e4 100644
--- a/exporting/prometheus/remote_write/remote_write.c
+++ b/exporting/prometheus/remote_write/remote_write.c
@@ -115,10 +115,9 @@ int init_prometheus_remote_write_instance(struct instance *instance)
instance->connector_specific_data = simple_connector_data;
#ifdef ENABLE_HTTPS
- simple_connector_data->flags = NETDATA_SSL_START;
- simple_connector_data->conn = NULL;
+ simple_connector_data->ssl = NETDATA_SSL_UNSET_CONNECTION;
if (instance->config.options & EXPORTING_OPTION_USE_TLS) {
- security_start_ssl(NETDATA_SSL_CONTEXT_EXPORTING);
+ netdata_ssl_initialize_ctx(NETDATA_SSL_EXPORTING_CTX);
}
#endif