From 8ee4b844fdc238e8c140904e0faf9d06340c76d4 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 28 Mar 2023 11:40:19 +0800 Subject: [PATCH] Fix: Pass rejectUnauthorized to Socks Proxy --- server/proxy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/proxy.js b/server/proxy.js index 2f2b57694..660b9b411 100644 --- a/server/proxy.js +++ b/server/proxy.js @@ -132,6 +132,9 @@ class Proxy { ...httpAgentOptions, ...httpsAgentOptions, ...proxyOptions, + tls: { + rejectUnauthorized: httpsAgentOptions.rejectUnauthorized, + }, }); httpAgent = agent;