mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 16:03:21 +00:00
improve no_proxy value by default
This commit is contained in:
@@ -284,6 +284,8 @@ lazy_static::lazy_static! {
|
||||
let mut proxy_env = Vec::new();
|
||||
if let Some(no_proxy) = NO_PROXY.as_ref() {
|
||||
proxy_env.push(("NO_PROXY", no_proxy.to_string()));
|
||||
} else if HTTPS_PROXY.is_some() || HTTP_PROXY.is_some() {
|
||||
proxy_env.push(("NO_PROXY", "localhost,127.0.0.1".to_string()));
|
||||
}
|
||||
if let Some(http_proxy) = HTTP_PROXY.as_ref() {
|
||||
proxy_env.push(("HTTP_PROXY", http_proxy.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user