mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Fix server initialization for http2 and go 1.7
This commit is contained in:
@@ -251,6 +251,9 @@ func (s *GenericAPIServer) Run(options *options.ServerRunOptions) {
|
||||
secureServer.TLSConfig.ClientAuth = tls.RequestClientCert
|
||||
// Specify allowed CAs for client certificates
|
||||
secureServer.TLSConfig.ClientCAs = clientCAs
|
||||
// "h2" NextProtos is necessary for enabling HTTP2 for go's 1.7 HTTP Server
|
||||
secureServer.TLSConfig.NextProtos = []string{"h2"}
|
||||
|
||||
}
|
||||
|
||||
glog.Infof("Serving securely on %s", secureLocation)
|
||||
|
Reference in New Issue
Block a user