Skip to content

Commit

Permalink
Fix other nil pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan J. Gallant <ethan.gallant@acquia.com>
  • Loading branch information
ethan-gallant committed Feb 17, 2023
1 parent 599d71f commit 5cbf819
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/tls_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ func ListenAndServe(server *http.Server, flags *FlagConfig, logger log.Logger) e
}
return ServeMultiple(listeners, server, flags, logger)
}

if flags.WebListenAddresses == nil {
*flags.WebListenAddresses = []string{"0.0.0.0"}
}

listeners := make([]net.Listener, 0, len(*flags.WebListenAddresses))
for _, address := range *flags.WebListenAddresses {
listener, err := net.Listen("tcp", address)
Expand Down

0 comments on commit 5cbf819

Please sign in to comment.