Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Feb 22, 2024
1 parent d75ea95 commit 7063e92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mirrord/cli/src/util.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/// Removes `HTTP_PROXY` and `https_proxy` from the environment
pub(crate) fn remove_proxy_env() {
for (key, _val) in std::env::vars() {
let lower_key = key.to_lowercase();
if lower_key == "http_proxy" || lower_key == "https_proxy" {
std::env::remove_var(key)
}
}
}

0 comments on commit 7063e92

Please sign in to comment.