mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
Reformat code
This commit is contained in:
parent
f3754b46cf
commit
7789af5658
1 changed files with 1 additions and 5 deletions
|
@ -52,15 +52,11 @@ static CLIENT: Lazy<Client> = Lazy::new(|| {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
let builder = if let Some(proxy) = proxy {
|
let builder = if let Some(proxy) = proxy {
|
||||||
// proxy basic auth
|
// proxy basic auth
|
||||||
if let Ok(proxy_auth_user) = env::var("PROXY_USER") {
|
if let Ok(proxy_auth_user) = env::var("PROXY_USER") {
|
||||||
let proxy_auth_pass = env::var("PROXY_PASS").unwrap_or_default();
|
let proxy_auth_pass = env::var("PROXY_PASS").unwrap_or_default();
|
||||||
builder.proxy(
|
builder.proxy(proxy.basic_auth(&proxy_auth_user, &proxy_auth_pass))
|
||||||
proxy
|
|
||||||
.basic_auth(&proxy_auth_user, &proxy_auth_pass),
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
builder.proxy(proxy)
|
builder.proxy(proxy)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue