Skip to content

Commit

Permalink
prioritise env HTTPS_PROXY over ALL_PROXY
Browse files Browse the repository at this point in the history
  • Loading branch information
grqx committed Sep 18, 2024
1 parent 06728e7 commit 74d2ba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/session_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}

Expand Down

0 comments on commit 74d2ba0

Please sign in to comment.