-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 SOCKS5 and SOCKS5H schemes #1562
Conversation
(cherry picked from commit 80b461f)
Will this be merged any time in the future? |
Hi @ahmedyarub, |
I made this contribution to vcpkg to fix building using Emscripten: microsoft/vcpkg#17348
|
Hi @ahmedyarub, |
I did test it on my machine and it worked. However, I can create a container and an integration test for you in the next few days. |
… SOCKS5_schemes
@sdavtaker test added with Dockerfile and instructions. |
Thanks @ahmedyarub for the contribution |
Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one. |
Description of changes:
Added schemes required for proxying connections to socks5 and socks5h (with host resolution) with CURL library.
Proxifying your connections to AWS is a very common requirement when using AWS SDK. unfortunately, since the default client only accepts http and https schemas, we cannot use socks5 and socks5h proxies that are already supported by curl. socks5h is especially useful in my case since I'm running my WebAssembly application on Google Chrome, and the only way to connect to AWS servers with WebAssembly is by proxifying the requests to a SOCKS proxy AND doing the DNS resolution on the proxy itself.
I could create a new client and use the overriding function but I found it too much of a hassle to create a new client and implement the overriding method and then setting as a default client configuration just so that I can add the schema.
Check all that applies:
Not applicable: it doesn't add anything functional. It just enables prepending socks5 and socks5h to the host name
Check which platforms you have built SDK on to verify the correctness of this PR.
WebAssembly
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.