mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
1 parent
9b658d86b2
commit
76509830e6
190 files changed
+3469
-930
No files matched your search
@@ -46,7 +46,10 @@ impl ProxyConfig {
|
||||
| Self::Global { url } => Some(Proxy::all(url)?),
|
||||
| Self::ByDomain(proxies) => Some(Proxy::custom(move |url| {
|
||||
// first matching proxy
|
||||
proxies.iter().find_map(|proxy| proxy.for_url(url)).cloned()
|
||||
proxies
|
||||
.iter()
|
||||
.find_map(|proxy| proxy.for_url(url))
|
||||
.cloned()
|
||||
})),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user