Skip to content

Commit

Permalink
fix ssl initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 22, 2024
1 parent b66cfd1 commit 076de49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RPCServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,13 @@ export default class RPCServer {
}
server.bindAsync(
`${this.addr}:${this.port}`,
this.caCrt && this.serverCrt && this.serverKey
this.caCrt || this.serverCrt || this.serverKey
? GRPC.ServerCredentials.createSsl(
this.caCrt,
this.caCrt||null,
[
{
private_key: this.serverKey,
cert_chain: this.serverCrt,
private_key: this.serverKey||null,
cert_chain: this.serverCrt||null,
},
],
false
Expand Down

0 comments on commit 076de49

Please sign in to comment.