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 <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Dec 6, 2024
1 parent 0644ceb commit c50fecd
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[46];
struct flb_hs *hs;

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

0 comments on commit c50fecd

Please sign in to comment.