Skip to content

Commit eebc0ed

Browse files
fix: streamline proxy handling in ArvanCloud CloudLogs plugin
1 parent e988514 commit eebc0ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/out_arvancloud_cloudlogs/arvancloud_cloudlogs.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,14 +417,12 @@ static void cb_arvancloud_flush(struct flb_event_chunk *event_chunk,
417417
(const char *) final_payload);
418418

419419
if (ctx->proxy) {
420-
/* When using a proxy, pass the target host and proxy information */
421420
c = flb_http_client(u_conn, FLB_HTTP_POST, ctx->uri,
422421
final_payload, final_payload_size,
423422
ctx->host, ctx->port,
424-
ctx->proxy_host, ctx->proxy_port);
423+
ctx->proxy, 0);
425424
}
426425
else {
427-
/* Direct connection - use host/port from u_conn */
428426
c = flb_http_client(u_conn, FLB_HTTP_POST, ctx->uri,
429427
final_payload, final_payload_size,
430428
NULL, 0,

0 commit comments

Comments
 (0)