Skip to content

Commit

Permalink
Changed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothsa4891 committed Sep 19, 2024
1 parent 9e68873 commit 7121f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js/src/channel-credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class SecureChannelCredentialsImpl extends ChannelCredentials {
verifyOptions.checkServerIdentity;
}

if (verifyOptions?.rejectUnauthorized) {
if (verifyOptions?.rejectUnauthorized !== undefined) {
this.connectionOptions.rejectUnauthorized =
verifyOptions.rejectUnauthorized;
}
Expand Down

0 comments on commit 7121f27

Please sign in to comment.