From e39a158a39b1880ac9d56103c6a36f90e855a900 Mon Sep 17 00:00:00 2001 From: Dolu Date: Mon, 1 Nov 2021 20:03:00 +0100 Subject: [PATCH] Remove rejectUnauthorized on LndHub tor --- src/backends/lndhub-rest/lndhub.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/lndhub-rest/lndhub.ts b/src/backends/lndhub-rest/lndhub.ts index 051cc3f..a381c94 100644 --- a/src/backends/lndhub-rest/lndhub.ts +++ b/src/backends/lndhub-rest/lndhub.ts @@ -164,7 +164,7 @@ export default class LndHub implements IBackend { if (this.socksProxyUrl !== null) { const socks = new URL(this.socksProxyUrl) - options.agent = new SocksProxyAgent.SocksProxyAgent({ hostname: socks.hostname, port: socks.port, protocol: socks.protocol, tls: { rejectUnauthorized: false } }) + options.agent = new SocksProxyAgent.SocksProxyAgent({ hostname: socks.hostname, port: socks.port, protocol: socks.protocol }) } return options @@ -182,7 +182,7 @@ export default class LndHub implements IBackend { if (this.socksProxyUrl !== null) { const socks = new URL(this.socksProxyUrl) - options.agent = new SocksProxyAgent.SocksProxyAgent({ hostname: socks.hostname, port: socks.port, protocol: socks.protocol, tls: { rejectUnauthorized: false } }) + options.agent = new SocksProxyAgent.SocksProxyAgent({ hostname: socks.hostname, port: socks.port, protocol: socks.protocol }) } const body = this.prepareBody({ login: this.client.login, password: this.client.password })