| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | // https://nodejs.org/api/cli.html#--use-env-proxy | |
| 10 | 10 | // https://undici.nodejs.org/#/docs/api/EnvHttpProxyAgent | |
| 11 | 11 | ||
| 12 | - import process from 'node:process' | ||
| 12 | + import { env } from 'node:process' | ||
| 13 | 13 | ||
| 14 | 14 | let installed = false | |
| 15 | 15 | ||
@@ -21,7 +21,7 @@ export async function installProxyDispatcher(): Promise<void> { | |||
| 21 | 21 | if (installed) | |
| 22 | 22 | return | |
| 23 | 23 | ||
| 24 | - const proxyUrl = process.env.HTTPS_PROXY || process.env.HTTP_PROXY || process.env.https_proxy || process.env.http_proxy | ||
| 24 | + const proxyUrl = env.HTTPS_PROXY || env.HTTP_PROXY || env.https_proxy || env.http_proxy | ||
| 25 | 25 | if (!proxyUrl) | |
| 26 | 26 | return | |
| 27 | 27 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments