Skip to content

Commit 7121f27

Browse files
committed
Changed condition
1 parent 9e68873 commit 7121f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grpc-js/src/channel-credentials.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class SecureChannelCredentialsImpl extends ChannelCredentials {
200200
verifyOptions.checkServerIdentity;
201201
}
202202

203-
if (verifyOptions?.rejectUnauthorized) {
203+
if (verifyOptions?.rejectUnauthorized !== undefined) {
204204
this.connectionOptions.rejectUnauthorized =
205205
verifyOptions.rejectUnauthorized;
206206
}

0 commit comments

Comments
 (0)