Skip to content

Conversation

@afarber
Copy link
Contributor

@afarber afarber commented Dec 17, 2025

Fixes #8329

Add pattern matching support for ProxyConfiguration.Proxy included/excluded addresses:

  • Add HostPortPattern class supporting exact hostnames, wildcard prefix (*.example.com), wildcard suffix (internal.*), CIDR notation (192.168.0.0/16), and IP ranges (10.0.0.1-10.0.0.10)
  • Add HostPortSet to work with IncludeExcludeSet for pattern-based matching
  • Update ProxyConfiguration.Proxy to use IncludeExcludeSet<String, HostPort> instead of HashSet<String>
  • Add validation to reject invalid patterns (userinfo @, paths /, middle wildcards)
  • Patterns without port match any port; patterns with port match only that specific port
  • Plain IP addresses use string comparison for backward compatibility; only CIDR and IP ranges use DNS resolution

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.

Why there is no Regex Support for excludeList of nonProxyHost

1 participant