1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-02 07:55:31 +00:00

Bump dynamic listener to v0.3.5

Bumps dynamic listener to v0.3.5. Adds a small arg change to
account for this version bump which addresses an issue caused by
the new version
This commit is contained in:
Michael Bolot
2022-11-11 16:19:32 -06:00
parent 37ee7bf3bd
commit c8fb653ca3
3 changed files with 24 additions and 132 deletions

View File

@@ -200,6 +200,9 @@ func (c *Server) ListenAndServe(ctx context.Context, httpsPort, httpPort int, op
c.StartAggregation(ctx)
if len(opts.TLSListenerConfig.SANs) == 0 {
opts.TLSListenerConfig.SANs = []string{"127.0.0.1"}
}
if err := server.ListenAndServe(ctx, httpsPort, httpPort, c, opts); err != nil {
return err
}