Skip to content

Commit 8eb753a

Browse files
committed
out_tcp: set network defaults to 127.0.0.1:5170
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 209e8a5 commit 8eb753a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/out_tcp/tcp_conf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ struct flb_out_tcp *flb_tcp_conf_create(struct flb_output_instance *ins,
4343
return NULL;
4444
}
4545

46+
/* Set default network configuration if not set */
47+
flb_output_net_default("127.0.0.1", 5170, ins);
48+
4649
/* Check if SSL/TLS is enabled */
4750
#ifdef FLB_HAVE_TLS
4851
if (ins->use_tls == FLB_TRUE) {

0 commit comments

Comments
 (0)