Skip to content

Commit

Permalink
http_server: hs: Handle IPv4 and IPv6 addresses
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
  • Loading branch information
cosmo0920 committed Oct 1, 2024
1 parent 8fc1d25 commit d98c5fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http_server/flb_hs.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ struct flb_hs *flb_hs_create(const char *listen, const char *tcp_port,
struct flb_config *config)
{
int vid;
char tmp[32];
/* Accept IPv6 and IPv4 address */
char tmp[45];
struct flb_hs *hs;

hs = flb_calloc(1, sizeof(struct flb_hs));
Expand Down

0 comments on commit d98c5fe

Please sign in to comment.