diff --git a/src/core/security/security_connector.h b/src/core/security/security_connector.h index c5f00c55637..24095cddde7 100644 --- a/src/core/security/security_connector.h +++ b/src/core/security/security_connector.h @@ -86,6 +86,7 @@ struct grpc_security_connector { int is_client_side; const char *url_scheme; grpc_auth_context *auth_context; /* Populated after the peer is checked. */ + const grpc_channel_args *channel_args; /* Server side only. */ }; /* Refcounting. */ diff --git a/src/core/security/server_secure_chttp2.c b/src/core/security/server_secure_chttp2.c index 1ea269bf8f0..c44cf8c7d79 100644 --- a/src/core/security/server_secure_chttp2.c +++ b/src/core/security/server_secure_chttp2.c @@ -236,6 +236,7 @@ int grpc_server_add_secure_http2_port(grpc_server *server, const char *addr, creds->type); goto error; } + sc->channel_args = grpc_server_get_channel_args(server); /* resolve address */ resolved = grpc_blocking_resolve_address(addr, "https");