Skip to content

Supported socks5 proxy for crypto-ws-client#18

Merged
soulmachine merged 5 commits intocrypto-crawler:mainfrom
tsingland-capital:main
Apr 28, 2022
Merged

Supported socks5 proxy for crypto-ws-client#18
soulmachine merged 5 commits intocrypto-crawler:mainfrom
tsingland-capital:main

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 <ghostlee@cyclegen.cloud>
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