-
-
Notifications
You must be signed in to change notification settings - Fork 942
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
Proxy support #7
Comments
I don't really care about proxy support, but I would consider a good PR ;) Maybe by using https://github.com/koichik/node-tunnel |
@radum is node-tunnel solving your issue? It seems like right solution to your problem for me. |
@floatdrop Maybe we should just mention it in the docs? |
@sindresorhus there is another module - tunnel-agent, which is used in request. I think it worth to mention them in readme 👍 |
@floatdrop tunnel-agent looks like is just node-tunnel: request/tunnel-agent#2 |
@sindresorhus yeah, but with some patches. Hope they will be ported to node-tunnel soon. |
@floatdrop both node-tunnel and tunnel-agent work just fine, but my problem is not with got missing proxy support is with all the other modules using got and not implementing proxy support. I've already had this conversation some time ago with @sindresorhus (kevva/download#13) and as he pointed out making every module downstream care about it doesn't work in real life because they suck and nobody cares about them but they are here to stay so IMHO I think proxy support should be handled by the low level modules that are actually doing the work. Now |
@radum thanks for linking this conversation. I agree with @sindresorhus, that it should be implemented in default agent. For example Go has support of |
Yeah the entire thing it's broken everywhere I know because I'm behind one and it's a pain everyday. Python guys have done it also for their request version http://docs.python-requests.org/en/latest/user/advanced/#proxies as for Node, it should be part of core IMHO. Thanks for the alternatives and the doc update anyways. |
I'm open to it, but it would need to be in a form of a good PR (preferably with as much code as possible in depending modules) with promise to continue maintaining it, as I'm not interested.
That issue is old so someone could try again, but that person should make sure the new issue has a lot of good arguments and evidence of why it should be in core.
Agreed! I do wonder why Node can't just use the system proxy settings. |
Now it's time to tackle this issue for good! :-) |
For socks5 proxies, this package seems to work as a replacement for node-tunnel which only handles http proxies:
|
With the latest version of got...
|
If we use this behind a corporate proxy will fail with
ECONNREFUSED
and I'm not sure how this can be updated to take a proxy option when it's called.The text was updated successfully, but these errors were encountered: