We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c5bca commit 1d231a9Copy full SHA for 1d231a9
grpc/grpc-core/src/nativeMain/kotlin/kotlinx/rpc/grpc/internal/NativeManagedChannel.kt
@@ -64,7 +64,10 @@ internal class NativeManagedChannel(
64
65
internal val raw: CPointer<grpc_channel> = memScoped {
66
val args = authority?.let {
67
- var authorityOverride = alloc<grpc_arg> {
+ // the C Core API doesn't have a way to override the authority (used for TLS SNI) as it
68
+ // is available in the Java gRPC implementation.
69
+ // instead, it can be done by setting the "grpc.ssl_target_name_override" argument.
70
+ val authorityOverride = alloc<grpc_arg> {
71
type = grpc_arg_type.GRPC_ARG_STRING
72
key = "grpc.ssl_target_name_override".cstr.ptr
73
value.string = authority.cstr.ptr
0 commit comments