From 8ee4b844fdc238e8c140904e0faf9d06340c76d4 Mon Sep 17 00:00:00 2001
From: Nelson Chan <chakflying@hotmail.com>
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 2f2b5769..660b9b41 100644
--- a/server/proxy.js
+++ b/server/proxy.js
@@ -132,6 +132,9 @@ class Proxy {
                     ...httpAgentOptions,
                     ...httpsAgentOptions,
                     ...proxyOptions,
+                    tls: {
+                        rejectUnauthorized: httpsAgentOptions.rejectUnauthorized,
+                    },
                 });
 
                 httpAgent = agent;