Skip to content

Commit

Permalink
Fix server start error (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
AiDaiP authored Apr 17, 2024
1 parent 0bcf42e commit a3bc995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/process-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a3bc995

Please sign in to comment.