Merge tag 'v1.5.2' into develop

Tagging hotfix 1.5.2 v1.5.2
This commit is contained in:
Dojo Coder
2024-09-29 20:20:55 +02:00
3 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -1,6 +1,6 @@
{
"name": "@samouraiwallet/electrum-client",
"version": "1.5.1",
"version": "1.5.2",
"engines": {
"node": ">=18.6.0"
},

View File

@@ -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");