From 9271375028a213925127b7ae7873ae2305509412 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 2 Jun 2023 14:27:12 +0200 Subject: [PATCH] build: address `gosec` warning Signed-off-by: Niels de Vos --- internal/util/httpserver.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/util/httpserver.go b/internal/util/httpserver.go index 676cf18b3..dd0e03389 100644 --- a/internal/util/httpserver.go +++ b/internal/util/httpserver.go @@ -24,6 +24,8 @@ func ValidateURL(c *Config) error { func StartMetricsServer(c *Config) { addr := net.JoinHostPort(c.MetricsIP, strconv.Itoa(c.MetricsPort)) http.Handle(c.MetricsPath, promhttp.Handler()) + + //nolint:gosec // TODO: add support for passing timeouts err := http.ListenAndServe(addr, nil) if err != nil { log.FatalLogMsg("failed to listen on address %v: %s", addr, err)