Proxy envs need to get elevated (#342)

This commit is contained in:
Ana Hobden 2023-03-16 07:43:07 -07:00 committed by GitHub
parent c13b08987b
commit 89094e0d40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,8 @@ pub fn ensure_root() -> eyre::Result<()> {
"GITHUB_PATH" => true, "GITHUB_PATH" => true,
// Used for detecting what command to suggest for sourcing Nix // Used for detecting what command to suggest for sourcing Nix
"SHELL" => true, "SHELL" => true,
// Proxy settings (automatically picked up by Reqwest)
"HTTP_PROXY" | "http_proxy" | "HTTPS_PROXY" | "https_proxy" => true,
// Our own environments // Our own environments
key if key.starts_with("NIX_INSTALLER") => true, key if key.starts_with("NIX_INSTALLER") => true,
_ => false, _ => false,