From bbae334b5b9c35bf49707fd3e7d6f6eec6cf984a Mon Sep 17 00:00:00 2001 From: Adrian Villin Date: Mon, 26 May 2025 17:03:21 +0200 Subject: [PATCH] http: add missing brackets around ip6 host header Type: fix Change-Id: Ia4a175d30e20a3e1ceeee0290914b3cb51904071 Signed-off-by: Adrian Villin --- src/plugins/http/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c index 876b7d2c9e5..1aed2fd358d 100644 --- a/src/plugins/http/http.c +++ b/src/plugins/http/http.c @@ -906,7 +906,7 @@ http_transport_connect (transport_endpoint_cfg_t *tep) hc->host = format (0, "%U:%d", format_ip4_address, &sep->ip.ip4, clib_net_to_host_u16 (sep->port)); else - hc->host = format (0, "%U:%d", format_ip6_address, &sep->ip.ip6, + hc->host = format (0, "[%U]:%d", format_ip6_address, &sep->ip.ip6, clib_net_to_host_u16 (sep->port)); HTTP_DBG (1, "hc ho_index %x", hc_index); -- 2.16.6