Skip to content

Commit

Permalink
Remove rejectUnauthorized on LndHub tor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu89 committed Nov 1, 2021
1 parent b2d64ec commit e39a158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backends/lndhub-rest/lndhub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 })
Expand Down

0 comments on commit e39a158

Please sign in to comment.