chore: Fix more merge issues and removed methods

This commit is contained in:
theS1LV3R committed 2026-07-03 10:59:13 +02:00
1 parent fb74da21d9
commit 44087d8c09
3 files changed
+4 -12

No files matched your search

+3 -1
View File
@@ -192,7 +192,9 @@ impl super::Service {
if let Some(url_host) = url.host_str() {
if let Ok(ip) = IPAddress::parse(url_host) {
trace!("Checking request URL IP {ip:?}");
self.services.resolver.validate_ip(&ip)?;
if !self.services.client.valid_cidr_range(&ip) {
return Err!(BadServerResponse("Not allowed to send requests to this IP"));
}
}
}