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

Supported socks5 proxy for crypto-ws-client #18

Merged
merged 5 commits into from
Apr 28, 2022

Conversation

GhostLee
Copy link
Contributor

@GhostLee GhostLee commented Apr 27, 2022

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

GhostLee and others added 4 commits April 26, 2022 17:29
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
@soulmachine soulmachine changed the title feat: support socks5 proxy for crypto-ws-client Supported socks5 proxy for crypto-ws-client Apr 28, 2022
@soulmachine
Copy link
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?

@soulmachine
Copy link
Collaborator

Related to snapview/tungstenite-rs#177

@GhostLee
Copy link
Contributor Author

yes, I use it in my project.

Copy link
Collaborator

@soulmachine soulmachine left a comment

Choose a reason for hiding this comment

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

Great job!

@soulmachine soulmachine merged commit 679d757 into crypto-crawler:main Apr 28, 2022
@soulmachine
Copy link
Collaborator

soulmachine commented Apr 28, 2022

I published new versions of carbonbot and crypto-crawler, which support socks5 proxy now.

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 <[email protected]>
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.

2 participants