@cryptotaxi247 / netdata-1 / commits / 8b01d04d3

Disregard host tags configuration pointer and keep duplicate string from streaming handshake. (#10121)

Markos Fountoulakis committed Oct 22, 2020 at 16:19 UTC 8b01d04d3e66aee363dee553453520139148dd9d
1 file changed +1 -2
streaming/receiver.c
+1 -2
@@ -279,8 +279,7 @@ static int rrdpush_receive(struct receiver_state *rpt)
279 rrdpush_send_charts_matching = appconfig_get(&stream_config, rpt->key, "default proxy send charts matching", rrdpush_send_charts_matching);
280 rrdpush_send_charts_matching = appconfig_get(&stream_config, rpt->machine_guid, "proxy send charts matching", rrdpush_send_charts_matching);
281
282 - rpt->tags = (char*)appconfig_set_default(&stream_config, rpt->machine_guid, "host tags", (rpt->tags)?rpt->tags:"");
283 - if(rpt->tags && !*rpt->tags) rpt->tags = NULL;
282 + (void)appconfig_set_default(&stream_config, rpt->machine_guid, "host tags", (rpt->tags)?rpt->tags:"");
283
284 if (strcmp(rpt->machine_guid, localhost->machine_guid) == 0) {
285 log_stream_connection(rpt->client_ip, rpt->client_port, rpt->key, rpt->machine_guid, rpt->hostname, "DENIED - ATTEMPT TO RECEIVE METRICS FROM MACHINE_GUID IDENTICAL TO PARENT");