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

Connect to the server via a SOCKS5 and HTTP proxy #135

Merged
merged 5 commits into from
Mar 8, 2022
Merged

Connect to the server via a SOCKS5 and HTTP proxy #135

merged 5 commits into from
Mar 8, 2022

Conversation

rapiz1
Copy link
Owner

@rapiz1 rapiz1 commented Mar 8, 2022

This PR allows users to specify a proxy used to connect to the server. The proxy doesn't affect how local_addr is connected to.

This PR also changes the configuration format. Now TCP-related options like keepalive are moved to transport.tcp block. And noise, tls will inherit options from tcp.

Resolves #35

@rapiz1 rapiz1 changed the title Support connect to the server via a SOCKS5 and HTTP proxy Connect to the server via a SOCKS5 and HTTP proxy Mar 8, 2022
@rapiz1 rapiz1 changed the base branch from main to dev March 8, 2022 10:52
@rapiz1 rapiz1 marked this pull request as ready for review March 8, 2022 10:52
@rapiz1 rapiz1 merged commit 5034f56 into dev Mar 8, 2022
@rapiz1 rapiz1 deleted the proxy branch March 8, 2022 10:53
rapiz1 added a commit that referenced this pull request Mar 8, 2022
* chore: add comments

* feat: support socks5/http proxy

* fix: clippy

* fix: always validate tcp config

* chore: rename directories
rapiz1 added a commit that referenced this pull request Mar 8, 2022
* chore: add comments

* feat: support socks5/http proxy

* fix: clippy

* fix: always validate tcp config

* chore: rename directories
rapiz1 added a commit that referenced this pull request Mar 8, 2022
* chore: add comments

* feat: support socks5/http proxy

* fix: clippy

* fix: always validate tcp config

* chore: rename directories
rapiz1 added a commit that referenced this pull request Mar 8, 2022
* chore: add comments

* feat: support socks5/http proxy

* fix: clippy

* fix: always validate tcp config

* chore: rename directories
cssivision pushed a commit to cssivision/rathole that referenced this pull request Apr 21, 2022
* chore: add comments

* feat: support socks5/http proxy

* fix: clippy

* fix: always validate tcp config

* chore: rename directories
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.

Support SOCKS5_PROXY and HTTP_PROXY for transport
1 participant