From 0bd6b5fb2b250967fdcbf63fa23baf522f8f2a46 Mon Sep 17 00:00:00 2001 From: Dojo Coder Date: Sun, 29 Sep 2024 20:20:25 +0200 Subject: [PATCH 1/2] Added `{rejectUnauthorized: false}` to TLSSocket --- src/lib/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/client.ts b/src/lib/client.ts index 9662a0c..4fb77ab 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -57,7 +57,7 @@ export abstract class Client { this.conn = this.protocol === "tls" || this.protocol === "ssl" ? // @ts-expect-error - new tls.TLSSocket() + new tls.TLSSocket(null, { rejectUnauthorized: false }) : new net.Socket(); this.conn.setTimeout(TIMEOUT); this.conn.setEncoding("utf8"); From 89a6dc0cde0783c0135a0182d3c8dca33d2da6dc Mon Sep 17 00:00:00 2001 From: Dojo Coder Date: Sun, 29 Sep 2024 20:20:38 +0200 Subject: [PATCH 2/2] Bump version --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index accec24..1e27ff9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.5.2 (2024-09-29) +- Added `{rejectUnauthorized: false}` to TLSSocket + ## 1.5.1 (2024-09-29) - Fixed socket connecting preemptively diff --git a/package.json b/package.json index e3a12c8..b74e472 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@samouraiwallet/electrum-client", - "version": "1.5.1", + "version": "1.5.2", "engines": { "node": ">=18.6.0" },