mirror of
https://github.com/alexgo-io/electrum-client.git
synced 2026-01-12 16:53:05 +08:00
Merge branch 'hotfix/1.5.2'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@samouraiwallet/electrum-client",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"engines": {
|
||||
"node": ">=18.6.0"
|
||||
},
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user