upstream: moved the mode argument to the first position in flb_tls_create
@@ -125,9 +125,9 @@ struct flb_upstream_node *flb_upstream_node_create(const char *name, const char
#ifdef FLB_HAVE_TLS
/* TLS setup */
if (tls == FLB_TRUE) {
- node->tls = flb_tls_create(tls_verify,
+ node->tls = flb_tls_create(FLB_TLS_CLIENT_MODE,
+ tls_verify,
tls_debug,
- FLB_TLS_CLIENT_MODE,
tls_vhost,
tls_ca_path,
tls_ca_file,
