File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -743,6 +743,7 @@ export class Http2SubchannelConnector implements SubchannelConnector {
743
743
...connectionOptions ,
744
744
...address ,
745
745
enableTrace : options [ 'grpc-node.tls_enable_trace' ] === 1 ,
746
+ rejectUnauthorized : options [ 'grpc-node.tls_reject_unauthorized' ] ?? true ,
746
747
} ;
747
748
748
749
/* http2.connect uses the options here:
@@ -837,6 +838,9 @@ export class Http2SubchannelConnector implements SubchannelConnector {
837
838
if ( options [ 'grpc-node.tls_enable_trace' ] ) {
838
839
connectionOptions . enableTrace = true ;
839
840
}
841
+ if ( options [ 'grpc-node.tls_reject_unauthorized' ] ) {
842
+ connectionOptions . rejectUnauthorized = options [ 'grpc-node.tls_reject_unauthorized' ] ;
843
+ }
840
844
}
841
845
842
846
return getProxiedConnection ( address , options , connectionOptions ) . then (
You can’t perform that action at this time.
0 commit comments