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

NO_PROXY doesn't work for IPv6 literals. #2353

Closed
steelman opened this issue Mar 2, 2018 · 5 comments
Closed

NO_PROXY doesn't work for IPv6 literals. #2353

steelman opened this issue Mar 2, 2018 · 5 comments

Comments

@steelman
Copy link

@steelman steelman commented Mar 2, 2018

I use TOR as a proxy. TOR actually refuses to establish connection to localhost, so I set NO_PROXY

NO_PROXY=localhost,127.0.0.1,::1

It enables connections to http://localhost and http://127.0.0.1 and does not work for http://[::1] at all.
Apparently the problem is caused by an assumption that a hostname cannot contain a colon.

@bagder
Copy link
Member

@bagder bagder commented Mar 3, 2018

Yes, seems like an accurate observation. Time to add a test case with an IPv6 numerical for this too...

bagder added a commit that referenced this issue Mar 3, 2018
Reported-by: steelman on github
Fixes #2353
@bagder
Copy link
Member

@bagder bagder commented Mar 3, 2018

It'd be great if you can just verify my patch in #2355. I'll try to add a test case for it before I merge anyway.

@steelman
Copy link
Author

@steelman steelman commented Mar 3, 2018

@bagder
Copy link
Member

@bagder bagder commented Mar 3, 2018

Docs is good indeed. But no, the brackets are not used in the NO_PROXY list. They are however mandatory in the URL itself.

@steelman
Copy link
Author

@steelman steelman commented Mar 3, 2018

Works for me (-: Thanks.

How about updating docs/curl.1 too?

@bagder bagder closed this in b7f9047 Mar 4, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.