Merge pull request #2988 from chakflying/fix/socks-rejectUnauthorized

Fix: Pass rejectUnauthorized to Socks Proxy
This commit is contained in:
Louis Lam
2023-04-01 00:48:28 +08:00
committed by GitHub

View File

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