From 304923057cc23d75cf705c58fa67b8f4ccc4c26b Mon Sep 17 00:00:00 2001 From: joehe_cn Date: Mon, 15 May 2023 16:14:55 +0800 Subject: [PATCH] option change (#164) * option change * fix: Missing space before function parentheses. --- lib.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib.js b/lib.js index d6c6a65..7217965 100644 --- a/lib.js +++ b/lib.js @@ -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 }