Controller: advertise ALPN (#279)

This commit is contained in:
Nikolay Edigaryev 2025-03-18 18:55:45 +04:00 committed by GitHub
parent a2a35c9f6f
commit d5cd08fcce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ func runController(cmd *cobra.Command, args []string) (err error) {
Certificates: []tls.Certificate{
controllerCert,
},
// Since gRPC clients started enforcing ALPN at some point, we need to advertise it
//
// See https://github.com/grpc/grpc-go/issues/7922 for more details.
NextProtos: []string{"http/1.1", "h2"},
}),
}