fix(pusher): Enforce ip_range_denylist on resolved pusher hosts

This commit is contained in:
Erwan Leboucher authored and Jade Ellis committed 2026-10-12 11:14:02 +01:00
1 parent fe0ab62124
commit 805d4d9416
3 files changed
+73 -20

No files matched your search

+9
View File
@@ -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)]