-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support SOCKS5 and HTTP proxy (#135)
* chore: add comments * feat: support socks5/http proxy * fix: clippy * fix: always validate tcp config * chore: rename directories
- Loading branch information
Showing
9 changed files
with
152 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[client] | ||
remote_addr = "127.0.0.1:2333" | ||
default_token = "123" | ||
|
||
[client.services.foo1] | ||
local_addr = "127.0.0.1:80" | ||
|
||
[client.transport] | ||
type = "tcp" | ||
[client.transport.tcp] | ||
# `proxy` controls how the client connect to the server | ||
# Use socks5 proxy at 127.0.0.1, with port 1080, username 'myuser' and password 'mypass' | ||
proxy = "socks5://myuser:mypass@127.0.0.1:1080" | ||
# Use http proxy. Similar to socks5 proxy | ||
# proxy = "http://myuser:mypass@127.0.0.1:8080" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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