Skip to content

Commit

Permalink
option change (#164)
Browse files Browse the repository at this point in the history
* option change

* fix: Missing space before function parentheses.
  • Loading branch information
joehecn authored May 15, 2023
1 parent baa869b commit 3049230
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ function pinoElasticSearch (opts) {
ssl: { rejectUnauthorized: opts.rejectUnauthorized }
}

if (opts.tls) {
clientOpts.tls = opts.tls
}

if (opts.caFingerprint) {
clientOpts.caFingerprint = opts.caFingerprint
}

if (opts.Connection) {
clientOpts.Connection = opts.Connection
}
Expand Down

0 comments on commit 3049230

Please sign in to comment.