Skip to content

Commit 2534310

Browse files
authored
Merge pull request moby#5413 from sgarcez/grpc-alpn-fix
fix: set h2 protocol identifier to comply with TLS-ALPN
2 parents 96f26c1 + 29a7e5a commit 2534310

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/buildkitd/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ func serverCredentials(cfg config.TLSConfig) (*tls.Config, error) {
740740
}
741741
tlsConf := &tls.Config{
742742
Certificates: []tls.Certificate{certificate},
743+
NextProtos: []string{"h2"},
743744
}
744745
if caFile != "" {
745746
certPool := x509.NewCertPool()

0 commit comments

Comments
 (0)