Skip to content

Commit d65cbdc

Browse files
edsipercosmo0920
authored andcommitted
network: register new proxy_env_ignore boolean flag
Signed-off-by: Eduardo Silva <[email protected]>
1 parent f4cf593 commit d65cbdc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/fluent-bit/flb_network.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ struct flb_net_setup {
9999

100100
/* maximum number of allowed active TCP connections */
101101
int max_worker_connections;
102+
103+
/* If true, ignore HTTP_PROXY, NO_PROXY, etc. */
104+
int proxy_env_ignore;
102105
};
103106

104107
/* Defines a host service and it properties */

src/flb_network.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ void flb_net_setup_init(struct flb_net_setup *net)
152152
net->io_timeout = 0; /* Infinite time */
153153
net->source_address = NULL;
154154
net->backlog = FLB_NETWORK_DEFAULT_BACKLOG_SIZE;
155+
net->proxy_env_ignore = FLB_FALSE;
155156
}
156157

157158
int flb_net_host_set(const char *plugin_name, struct flb_net_host *host, const char *address)

0 commit comments

Comments
 (0)