Skip to content

fix(proxy): handle WinINET IP wildcards - #309

Merged
seanmonstar merged 2 commits into
hyperium:masterfrom
subotac:fix/system-proxy-ip-wildcards
Aug 3, 2026
Merged

fix(proxy): handle WinINET IP wildcards#309
seanmonstar merged 2 commits into
hyperium:masterfrom
subotac:fix/system-proxy-ip-wildcards

Conversation

@subotac

@subotac subotac commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Fixes hyperium/hyper#4128.

Normalize IPv4 wildcard patterns returned by WinINET, such as 127.* and 192.168.*, into equivalent CIDR ranges before matching system proxy exclusions.

Standard NO_PROXY parsing remains unchanged.

Tests:

  • cargo test --features client-proxy,client-proxy-system client::proxy::matcher::tests
  • cargo fmt --all --check
  • git diff --check

@seanmonstar
seanmonstar merged commit 4684c71 into hyperium:master Aug 3, 2026
18 checks passed
barjin pushed a commit to apify/hyper-util that referenced this pull request Aug 4, 2026
Normalize IPv4 wildcard patterns returned by WinINET, such as 127.* and 192.168.*, into equivalent CIDR ranges before matching system proxy exclusions.

Fixes hyperium/hyper#4128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hyper-util: system proxy on Windows ignores WinINET ProxyOverride IP wildcards (127.* etc.), loopback dials get proxied

2 participants