Added {rejectUnauthorized: false} to TLSSocket

This commit is contained in:
Dojo Coder
2024-09-29 20:20:25 +02:00
parent 89ea606d59
commit 0bd6b5fb2b

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