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
commit de0d1edfd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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