Skip to content

Commit

Permalink
out_syslog: use new udp connect api prototype
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Nov 15, 2020
1 parent 2c34398 commit 0855895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/out_syslog/syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0855895

Please sign in to comment.