mirror of https://github.com/docker/docs.git
Change the HTTP server returned by signer config to be a pointer
Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
parent
77b33cf10f
commit
bc4e8a0f9e
|
@ -141,9 +141,9 @@ func setupGRPCServer(grpcAddr string, tlsConfig *tls.Config,
|
||||||
}
|
}
|
||||||
|
|
||||||
func setupHTTPServer(httpAddr string, tlsConfig *tls.Config,
|
func setupHTTPServer(httpAddr string, tlsConfig *tls.Config,
|
||||||
cryptoServices signer.CryptoServiceIndex) http.Server {
|
cryptoServices signer.CryptoServiceIndex) *http.Server {
|
||||||
|
|
||||||
return http.Server{
|
return &http.Server{
|
||||||
Addr: httpAddr,
|
Addr: httpAddr,
|
||||||
Handler: api.Handlers(cryptoServices),
|
Handler: api.Handlers(cryptoServices),
|
||||||
TLSConfig: tlsConfig,
|
TLSConfig: tlsConfig,
|
||||||
|
|
Loading…
Reference in New Issue