From 74d2ba07a3de48bfdc38f2f976056003a4e28cbf Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Wed, 18 Sep 2024 23:03:31 +0000 Subject: [PATCH] prioritise env HTTPS_PROXY over ALL_PROXY --- server/src/session_manager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/session_manager.ts b/server/src/session_manager.ts index 91c1aa9..238b2b9 100644 --- a/server/src/session_manager.ts +++ b/server/src/session_manager.ts @@ -155,11 +155,11 @@ export class SessionManager { let dispatcher: Agent | undefined; if (proxy) { dispatcher = this.getProxyDispatcher(proxy); - } else if (process.env.ALL_PROXY) { - dispatcher = this.getProxyDispatcher(process.env.ALL_PROXY); } else { dispatcher = this.getProxyDispatcher( - process.env.HTTPS_PROXY || process.env.HTTP_PROXY, + process.env.HTTPS_PROXY || + process.env.HTTP_PROXY || + process.env.ALL_PROXY, ); }