From d98c5fe3a612934d8ce16911e626361e8791ced6 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 1 Oct 2024 15:42:09 +0900 Subject: [PATCH] http_server: hs: Handle IPv4 and IPv6 addresses Signed-off-by: Hiroshi Hatake --- src/http_server/flb_hs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http_server/flb_hs.c b/src/http_server/flb_hs.c index 40cc8467ae7..a3a2501745a 100644 --- a/src/http_server/flb_hs.c +++ b/src/http_server/flb_hs.c @@ -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));