Skip to content

Commit

Permalink
fix the ALPN error
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 committed Nov 26, 2024
1 parent 472534b commit cf3d497
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dgraph/cmd/alpha/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ func serveGRPC(l net.Listener, tlsCfg *tls.Config, closer *z.Closer) {
grpc.UnaryInterceptor(audit.AuditRequestGRPC),
}
if tlsCfg != nil {
tlsCfg.NextProtos = []string{"h2"}
opt = append(opt, grpc.Creds(credentials.NewTLS(tlsCfg)))
}

Expand Down

0 comments on commit cf3d497

Please sign in to comment.