From 08558950d8a6a975d90d806fe2e494209fa00fb0 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sun, 15 Nov 2020 17:27:32 -0600 Subject: [PATCH] out_syslog: use new udp connect api prototype Signed-off-by: Eduardo Silva --- plugins/out_syslog/syslog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/out_syslog/syslog.c b/plugins/out_syslog/syslog.c index 49d1494234b..abb2246c038 100644 --- a/plugins/out_syslog/syslog.c +++ b/plugins/out_syslog/syslog.c @@ -861,7 +861,8 @@ static int cb_syslog_init(struct flb_output_instance *ins, struct flb_config *co ctx->fd = -1; if (ctx->parsed_mode == FLB_SYSLOG_UDP) { - ctx->fd = flb_net_udp_connect(ins->host.name, ins->host.port); + ctx->fd = flb_net_udp_connect(ins->host.name, ins->host.port, + ins->net_setup.source_address); if (ctx->fd < 0) { flb_syslog_config_destroy(ctx); return -1;