Skip to content

Conversation

@Naitik2302
Copy link

Summary

This PR adds support for IPv6 CIDR ranges in the no_proxy environment
variable when determining proxy bypass behavior.

Motivation

While Requests already supports IPv4 CIDR ranges and exact IPv6 matches,
IPv6 CIDR ranges were not handled, leading to inconsistent behavior in
IPv6-enabled environments.

Testing

  • Added unit tests covering IPv6 CIDR matching
  • Verified no regressions in existing proxy behavior

Extend proxy bypass logic to correctly interpret IPv6 CIDR ranges
defined in the no_proxy environment variable. Existing IPv4 and
hostname behavior remains unchanged.
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.

1 participant