From 2c3439858d968aabec5a9d44a26433ce29ff22fb Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sun, 15 Nov 2020 17:27:24 -0600 Subject: [PATCH] out_gelg: use new udp connect api prototype Signed-off-by: Eduardo Silva --- plugins/out_gelf/gelf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/out_gelf/gelf.c b/plugins/out_gelf/gelf.c index a32c5d4aaa0..b6d81d7aa3b 100644 --- a/plugins/out_gelf/gelf.c +++ b/plugins/out_gelf/gelf.c @@ -416,7 +416,8 @@ static int cb_gelf_init(struct flb_output_instance *ins, struct flb_config *conf ctx->pckt_buf = NULL; if (ctx->mode == FLB_GELF_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_free(ctx); return -1;