Skip to content

Commit

Permalink
chore: log when _PROXY values detected (#29191)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored May 21, 2024
1 parent ab36239 commit e281931
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/proxy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import is from '@sindresorhus/is';
import { createGlobalProxyAgent } from 'global-agent';
import { logger } from './logger';

const envVars = ['HTTP_PROXY', 'HTTPS_PROXY', 'NO_PROXY'];

Expand All @@ -16,6 +17,7 @@ export function bootstrap(): void {
}

if (process.env[envVar]) {
logger.debug(`Detected ${envVar} value in env`);
process.env[envVar.toLowerCase()] = process.env[envVar];
}
});
Expand Down

0 comments on commit e281931

Please sign in to comment.