From c50fecdf2ee87a7650696e4b9b74c7e568847fff 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..5c9ec2c129f 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[46]; struct flb_hs *hs; hs = flb_calloc(1, sizeof(struct flb_hs));