diff --git a/transport/internet/grpc/hub.go b/transport/internet/grpc/hub.go index a2a5ce40..40bb0b51 100644 --- a/transport/internet/grpc/hub.go +++ b/transport/internet/grpc/hub.go @@ -80,6 +80,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, settings *i var options []grpc.ServerOption var s *grpc.Server if config != nil { + // gRPC server may silently ignore TLS errors options = append(options, grpc.Creds(credentials.NewTLS(config.GetTLSConfig(tls.WithNextProto("h2"))))) } if grpcSettings.IdleTimeout > 0 || grpcSettings.HealthCheckTimeout > 0 {