diff --git a/cmd/process-exporter/main.go b/cmd/process-exporter/main.go index 54f5d94..7ca5a41 100644 --- a/cmd/process-exporter/main.go +++ b/cmd/process-exporter/main.go @@ -280,7 +280,8 @@ func main() { }) server := &http.Server{Addr: *listenAddress} if err := web.ListenAndServe(server, &web.FlagConfig{ - WebConfigFile: tlsConfigFile, + WebListenAddresses: &[]string{*listenAddress}, + WebConfigFile: tlsConfigFile, }, logger); err != nil { log.Fatalf("Failed to start the server: %v", err) os.Exit(1)