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
|
||||
};
|
||||
|
||||
|
||||
let builder = if let Some(proxy) = proxy {
|
||||
// proxy basic auth
|
||||
if let Ok(proxy_auth_user) = env::var("PROXY_USER") {
|
||||
let proxy_auth_pass = env::var("PROXY_PASS").unwrap_or_default();
|
||||
builder.proxy(
|
||||
proxy
|
||||
.basic_auth(&proxy_auth_user, &proxy_auth_pass),
|
||||
)
|
||||
builder.proxy(proxy.basic_auth(&proxy_auth_user, &proxy_auth_pass))
|
||||
} else {
|
||||
builder.proxy(proxy)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue