Supported socks5 proxy for crypto-ws-client#18
Merged
soulmachine merged 5 commits intocrypto-crawler:mainfrom Apr 28, 2022
Merged
Supported socks5 proxy for crypto-ws-client#18soulmachine merged 5 commits intocrypto-crawler:mainfrom
soulmachine merged 5 commits intocrypto-crawler:mainfrom
Conversation
use fast_socks5 crate to wrap the TcpStream so that we can use socks5 proxy, please set SOCKS_PROXY env before run executable
use fast_socks5 crate to wrap the TcpStream so that we can use socks5 proxy, please set https_proxy env before run executable. eg. https_proxy=socks5://127.0.0.1:10808
[skip ci]
soulmachine
reviewed
Apr 28, 2022
Collaborator
|
Hi @GhostLee , thank your for this great job. One quick question, have you run this against a real socks5 proxy? Is your code working? |
Collaborator
|
Related to snapview/tungstenite-rs#177 |
Contributor
Author
|
yes, I use it in my project. |
[skip ci]
Collaborator
|
I published new versions of |
soulmachine
pushed a commit
that referenced
this pull request
Sep 10, 2022
* feat: support socks5 proxy for websocket client use fast_socks5 crate to wrap the TcpStream so that we can use socks5 proxy, please set SOCKS_PROXY env before run executable * feat: support socks5 proxy with https_proxy env for websocket client use fast_socks5 crate to wrap the TcpStream so that we can use socks5 proxy, please set https_proxy env before run executable. eg. https_proxy=socks5://127.0.0.1:10808 * refactor: remove tests [skip ci] * fix: support http_proxy [skip ci] Co-authored-by: GhostLee <ghostlee@cyclegen.cloud>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use
fast_socks5crate to wrap the TcpStream so that we can use socks5 proxy, please set https_proxy env before run executable.eg.
https_proxy=socks5://127.0.0.1:10808