mirror of https://github.com/grpc/grpc-node.git
grpc-js: setting ALPNProtocols option for tls proxy
This commit is contained in:
parent
b9e84f499f
commit
48072d5f4f
|
|
@ -424,6 +424,7 @@ export class Subchannel {
|
||||||
this.credentials._getConnectionOptions() || {};
|
this.credentials._getConnectionOptions() || {};
|
||||||
|
|
||||||
if ('secureContext' in connectionOptions) {
|
if ('secureContext' in connectionOptions) {
|
||||||
|
connectionOptions.ALPNProtocols = ['h2'];
|
||||||
// If provided, the value of grpc.ssl_target_name_override should be used
|
// If provided, the value of grpc.ssl_target_name_override should be used
|
||||||
// to override the target hostname when checking server identity.
|
// to override the target hostname when checking server identity.
|
||||||
// This option is used for testing only.
|
// This option is used for testing only.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue