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 /collectors/plugins.d | |
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 'collectors/plugins.d')
-rw-r--r-- | collectors/plugins.d/plugins_d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/collectors/plugins.d/plugins_d.c b/collectors/plugins.d/plugins_d.c index edbdb57302..32c5840328 100644 --- a/collectors/plugins.d/plugins_d.c +++ b/collectors/plugins.d/plugins_d.c @@ -258,17 +258,17 @@ inline size_t pluginsd_process(RRDHOST *host, struct plugind *cd, FILE *fp, int #ifdef ENABLE_HTTPS int normalread = 1; if(netdata_srv_ctx) { - if(host->ssl.conn && !host->ssl.flags) { + if(host->stream_ssl.conn && !host->stream_ssl.flags) { if(!bytesleft) { r = line; readfrom = tmpbuffer; - bytesleft = pluginsd_update_buffer(readfrom, host->ssl.conn); + bytesleft = pluginsd_update_buffer(readfrom, host->stream_ssl.conn); if(bytesleft <= 0) { break; } } - readfrom = pluginsd_get_from_buffer(line, &bytesleft, readfrom, host->ssl.conn, tmpbuffer); + readfrom = pluginsd_get_from_buffer(line, &bytesleft, readfrom, host->stream_ssl.conn, tmpbuffer); if(!readfrom) { r = NULL; } |