mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-12-06 19:16:48 +01:00
Fix compile issues.
This commit is contained in:
+6
-4
@@ -47,9 +47,9 @@ static CLIENT: Lazy<Client> = Lazy::new(|| {
|
||||
None
|
||||
};
|
||||
|
||||
if proxy.is_some() {
|
||||
let builder = if proxy.is_some() {
|
||||
// proxy basic auth
|
||||
let builder = 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();
|
||||
builder.proxy(
|
||||
proxy
|
||||
@@ -58,8 +58,10 @@ static CLIENT: Lazy<Client> = Lazy::new(|| {
|
||||
)
|
||||
} else {
|
||||
builder.proxy(proxy.unwrap())
|
||||
};
|
||||
}
|
||||
}
|
||||
} else {
|
||||
builder
|
||||
};
|
||||
|
||||
if env::var("IPV4_ONLY").is_ok() {
|
||||
builder
|
||||
|
||||
Reference in New Issue
Block a user