fix: actually check redirect urls

kind of the whole point of this thing.
This commit is contained in:
IAmTomahawkx
2026-05-06 21:32:34 -07:00
parent 7fb536cad4
commit 1098e970f2

View File

@@ -293,7 +293,10 @@ impl Request {
if let Some(location) = response.headers().get("location") {
let location = location.to_str().map_err(|_| create_error!(ProxyError))?;
url = Url::from_str(location).to_internal_error()?;
continue;
if !Request::url_is_blacklisted(&url).await? {
continue;
}
} else {
return Err(create_error!(ProxyError));
}