mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
fix(pusher): Enforce ip_range_denylist on resolved pusher hosts
This commit is contained in:
1 parent
fe0ab62124
commit
805d4d9416
3 files changed
+73
-20
No files matched your search
@@ -50,6 +50,15 @@ impl ProxyConfig {
|
||||
})),
|
||||
})
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn url_for(&self, url: &Url) -> Option<&Url> {
|
||||
match self {
|
||||
| Self::None => None,
|
||||
| Self::Global { url } => Some(url),
|
||||
| Self::ByDomain(proxies) => proxies.iter().find_map(|proxy| proxy.for_url(url)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
|
||||
Reference in new issue
Block a user