diff --git a/cmd/fleet/server.go b/cmd/fleet/server.go index 971534c56..18b3f2742 100644 --- a/cmd/fleet/server.go +++ b/cmd/fleet/server.go @@ -107,7 +107,7 @@ func runServer(ctx context.Context, router http.Handler, cfg *config.Server) err if err != nil { return err } - server.TLSConfig = commonTlsCfg.ToConfig() + server.TLSConfig = commonTlsCfg.BuildServerConfig(cfg.Host) // Must enable http/2 in the configuration explicitly. // (see https://golang.org/pkg/net/http/#Server.Serve)