mirror of
https://github.com/alexgo-io/electrum-client.git
synced 2026-01-12 16:53:05 +08:00
Added {rejectUnauthorized: false} to TLSSocket
This commit is contained in:
@@ -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