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:
Ying Li 2016-04-11 14:31:41 -07:00
parent 77b33cf10f
commit bc4e8a0f9e
1 changed files with 2 additions and 2 deletions

View File

@ -141,9 +141,9 @@ func setupGRPCServer(grpcAddr 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,
Handler: api.Handlers(cryptoServices),
TLSConfig: tlsConfig,