Summary
FetcherConfig has a proxies: HashMap<String, String> field that is never read or applied to the HTTP client. Users who configure per-protocol proxies will get no proxying at all with no error.
Location
- File:
src/fetchers/config.rs
- Line(s): 14
Severity
Medium
Details
The proxy: Option<String> field is applied (single proxy), but proxies: HashMap<String, String> has no builder method and is never read in client.rs. Any user who sets config.proxies expecting per-protocol routing will silently get no proxying.
Suggested Fix
Either remove proxies if unimplemented:
// remove from FetcherConfig
Or implement it:
for (scheme, proxy_url) in &config.proxies {
// apply per-scheme proxy routing
}
Automated finding by repo-monitor
Summary
FetcherConfighas aproxies: HashMap<String, String>field that is never read or applied to the HTTP client. Users who configure per-protocol proxies will get no proxying at all with no error.Location
src/fetchers/config.rsSeverity
Medium
Details
The
proxy: Option<String>field is applied (single proxy), butproxies: HashMap<String, String>has no builder method and is never read inclient.rs. Any user who setsconfig.proxiesexpecting per-protocol routing will silently get no proxying.Suggested Fix
Either remove
proxiesif unimplemented:// remove from FetcherConfigOr implement it:
Automated finding by repo-monitor