Skip to content

Commit

Permalink
Remove system proxy environment variables on client start
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed May 5, 2024
1 parent 674d2e6 commit 258c017
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions binaries/geph5-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ pub struct Client {
impl Client {
/// Starts the client logic in the loop, returnign the handle.
pub fn start(cfg: Config) -> Self {
std::env::remove_var("http_proxy");
std::env::remove_var("https_proxy");
std::env::remove_var("HTTP_PROXY");
std::env::remove_var("HTTPS_PROXY");
let ctx = AnyCtx::new(cfg);
let task = smolscale::spawn(client_main(ctx.clone()).map_err(Arc::new));
Client {
Expand Down

0 comments on commit 258c017

Please sign in to comment.