Fix: Pass rejectUnauthorized to Socks Proxy

This commit is contained in:
Nelson Chan 2023-03-28 11:40:19 +08:00
parent 89bfc3bf33
commit 8ee4b844fd

View file

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