From 4463b8c51fa0e47febe67439aef1d717e43e8ff3 Mon Sep 17 00:00:00 2001 From: robertdavidsmith <34475852+robertdavidsmith@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:21:28 +0100 Subject: [PATCH] Profiling port should not bind to locahost --- internal/common/profiling/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/common/profiling/http.go b/internal/common/profiling/http.go index cea7021bc13..b691ad16893 100644 --- a/internal/common/profiling/http.go +++ b/internal/common/profiling/http.go @@ -79,7 +79,7 @@ func setupPprofHttpServerWithAuth(port uint16, authFunc func(w http.ResponseWrit } return &http.Server{ - Addr: fmt.Sprintf("localhost:%d", port), + Addr: fmt.Sprintf(":%d", port), Handler: authInterceptor, } }