Skip to content

Commit

Permalink
input: remove tls options from base options listing in help output.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Nov 7, 2023
1 parent 96f566e commit 62cd3fd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/flb_help.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ int flb_help_input(struct flb_input_instance *ins, void **out_buf, size_t *out_s
msgpack_sbuffer mp_sbuf;
msgpack_packer mp_pck;
int options_size = 0;
struct mk_list *tls_config;
struct flb_config_map m_input_net_listen = {
.type = FLB_CONFIG_MAP_STR,
.name = "host",
Expand Down Expand Up @@ -245,24 +244,13 @@ int flb_help_input(struct flb_input_instance *ins, void **out_buf, size_t *out_s
if ((ins->flags & (FLB_INPUT_NET | FLB_INPUT_NET_SERVER)) != 0) {
options_size += 2;
}
if (ins->flags & FLB_IO_OPT_TLS) {
tls_config = flb_tls_get_config_map(ins->config);
options_size += mk_list_size(tls_config);
}

msgpack_pack_array(&mp_pck, options_size);

if ((ins->flags & (FLB_INPUT_NET | FLB_INPUT_NET_SERVER)) != 0) {
pack_config_map_entry(&mp_pck, &m_input_net_listen);
pack_config_map_entry(&mp_pck, &m_input_net_port);
}
if (ins->flags & FLB_IO_OPT_TLS) {
mk_list_foreach(head, tls_config) {
m = mk_list_entry(head, struct flb_config_map, _head);
pack_config_map_entry(&mp_pck, m);
}
flb_config_map_destroy(tls_config);
}

mk_list_foreach(head, config_map) {
m = mk_list_entry(head, struct flb_config_map, _head);
Expand Down

0 comments on commit 62cd3fd

Please sign in to comment.