diff options
author | Vladimir Kobal <vlad@prokk.net> | 2021-04-21 19:02:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 19:02:32 +0300 |
commit | 0d5781ed7c19bc49a241defeeb8273c368be0396 (patch) | |
tree | fa8c859589e74aa515a650f2800100b3ace9c151 /exporting/send_data.c | |
parent | a1ce482f3e336dbabe1b12b92f6339af6a2bbbf8 (diff) |
Allow the remote write configuration have multiple destinations (#11005)
Diffstat (limited to 'exporting/send_data.c')
-rw-r--r-- | exporting/send_data.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/exporting/send_data.c b/exporting/send_data.c index 1e932e98ff..0f5e419296 100644 --- a/exporting/send_data.c +++ b/exporting/send_data.c @@ -314,7 +314,12 @@ void simple_connector_worker(void *instance_p) size_t reconnects = 0; sock = connect_to_one_of( - instance->config.destination, connector_specific_config->default_port, &timeout, &reconnects, NULL, 0); + instance->config.destination, + connector_specific_config->default_port, + &timeout, + &reconnects, + connector_specific_data->connected_to, + CONNECTED_TO_MAX); #ifdef ENABLE_HTTPS if (exporting_tls_is_enabled(instance->config.type, options) && sock != -1) { if (netdata_exporting_ctx) { |