Skip to content

Commit c50fecd

Browse files
cosmo0920edsiper
authored andcommitted
http_server: hs: Handle IPv4 and IPv6 addresses
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 0644ceb commit c50fecd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/http_server/flb_hs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ struct flb_hs *flb_hs_create(const char *listen, const char *tcp_port,
7171
struct flb_config *config)
7272
{
7373
int vid;
74-
char tmp[32];
74+
/* Accept IPv6 and IPv4 address */
75+
char tmp[46];
7576
struct flb_hs *hs;
7677

7778
hs = flb_calloc(1, sizeof(struct flb_hs));

0 commit comments

Comments
 (0)