Skip to content

[repo-monitor] Medium: proxies HashMap in FetcherConfig declared but never applied #8

@Liohtml

Description

@Liohtml

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions