From 162793b73b25143d0fd14972bddef7eaa629128b Mon Sep 17 00:00:00 2001 From: Eridanus Sora Date: Sat, 24 Feb 2024 00:11:54 +0800 Subject: [PATCH] fix typo --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4f78edf..98c126e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,15 +52,15 @@ Erii.bind( }, async (ctx, options) => { const path = ctx.getArgument().toString(); + if (options.verbose) { + logger.enableDebugMode(); + } if (!options.noProxy && !process.env.NO_PROXY) { - if (options.verbose) { - logger.enableDebugMode(); - } if (process.platform === "win32") { await ProxyAgent.readWindowsSystemProxy(); } + ProxyAgent.readProxyConfigurationFromEnv(); } - ProxyAgent.readProxyConfigurationFromEnv(); const fileOptions = readConfigFile(); if (Object.keys(fileOptions).length > 0) { logger.debug(`Read config file: ${JSON.stringify(fileOptions)}`);