Skip to content

Commit

Permalink
config: added ipv6 dns result priorization option
Browse files Browse the repository at this point in the history
Signed-off-by: nvima <[email protected]>
  • Loading branch information
nvima authored and pwhelan committed Jan 16, 2024
1 parent 9fb3b02 commit 48440bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fluent-bit/flb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ struct flb_config {
char *dns_mode;
char *dns_resolver;
int dns_prefer_ipv4;
int dns_prefer_ipv6;

/* Chunk I/O Buffering */
void *cio;
Expand Down Expand Up @@ -350,6 +351,7 @@ enum conf_type {
#define FLB_CONF_DNS_MODE "dns.mode"
#define FLB_CONF_DNS_RESOLVER "dns.resolver"
#define FLB_CONF_DNS_PREFER_IPV4 "dns.prefer_ipv4"
#define FLB_CONF_DNS_PREFER_IPV6 "dns.prefer_ipv6"

/* Storage / Chunk I/O */
#define FLB_CONF_STORAGE_PATH "storage.path"
Expand Down
4 changes: 4 additions & 0 deletions src/flb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ struct flb_service_config service_configs[] = {
FLB_CONF_TYPE_BOOL,
offsetof(struct flb_config, dns_prefer_ipv4)},

{FLB_CONF_DNS_PREFER_IPV6,
FLB_CONF_TYPE_BOOL,
offsetof(struct flb_config, dns_prefer_ipv6)},

/* Storage */
{FLB_CONF_STORAGE_PATH,
FLB_CONF_TYPE_STR,
Expand Down

0 comments on commit 48440bc

Please sign in to comment.