Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ip-address handling to no_proxy-envvar #718

Merged
merged 2 commits into from Jun 9, 2020

Conversation

m-bucher
Copy link
Contributor

@m-bucher m-bucher commented Jun 4, 2020

I did add handling for host IP-addresses. This should also give the ability to specify network-addreses like 10.0.0.0/8 or [fc00::/7]in the no_proxy variable.
However, they will only be evaluated correctly if the requested URI also includes the IP-address.

Added an IPv4 and IPv6 address to the no_proxy variable in the tests, so they will fail, if this breaks again.
Maybe additional test-cases are needed regarding the no_proxy handling like

  • IP-address (maybe IP network-address)
  • no_proxy entries with specified hostname
  • no_proxy entries with/without wildcards

Fixes #716

Copy link
Contributor

@geemus geemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@geemus geemus merged commit 48e12ac into excon:master Jun 9, 2020
@m-bucher m-bucher deleted the improve_no_proxy_handling branch June 10, 2020 14:19
@geemus
Copy link
Contributor

geemus commented Jun 12, 2020

Fix now released as part of 0.74.0.

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.

Exception if no_proxy includes IPv6-address
2 participants