Fix: Pass rejectUnauthorized to Socks Proxy

pull/2988/head
Nelson Chan 2023-03-28 11:40:19 +08:00
parent 89bfc3bf33
commit 8ee4b844fd
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ class Proxy {
...httpAgentOptions, ...httpAgentOptions,
...httpsAgentOptions, ...httpsAgentOptions,
...proxyOptions, ...proxyOptions,
tls: {
rejectUnauthorized: httpsAgentOptions.rejectUnauthorized,
},
}); });
httpAgent = agent; httpAgent = agent;