diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2019-11-14 14:16:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 14:16:49 +0000 |
commit | 0d985568013377c332a7574fd2935339b583d9d4 (patch) | |
tree | dd48d53831092aa371b8e9b71eaf5675965160ec /database | |
parent | 4207f1797ebaf295aa954858d27bfbbeacaf5081 (diff) |
stream_ssl_slave: Fix socket overwrite (#7306)
When a slave had SSL activate for stream and local access it was overwritten the addresses,
this PR fixes this problem that was not allowed the stream works 100%
Diffstat (limited to 'database')
-rw-r--r-- | database/rrd.h | 1 | ||||
-rw-r--r-- | database/rrdhost.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/database/rrd.h b/database/rrd.h index e335f0dd0b..8efe2adb05 100644 --- a/database/rrd.h +++ b/database/rrd.h @@ -739,6 +739,7 @@ struct rrdhost { #ifdef ENABLE_HTTPS struct netdata_ssl ssl; //Structure used to encrypt the connection + struct netdata_ssl stream_ssl; //Structure used to encrypt the stream #endif struct rrdhost *next; diff --git a/database/rrdhost.c b/database/rrdhost.c index 9075787b05..bf540a2097 100644 --- a/database/rrdhost.c +++ b/database/rrdhost.c @@ -150,6 +150,8 @@ RRDHOST *rrdhost_create(const char *hostname, #ifdef ENABLE_HTTPS host->ssl.conn = NULL; host->ssl.flags = NETDATA_SSL_START; + host->stream_ssl.conn = NULL; + host->stream_ssl.flags = NETDATA_SSL_START; #endif netdata_mutex_init(&host->rrdpush_sender_buffer_mutex); |