Skip to content

Commit 1cf50d2

Browse files
arloorliuganghuan
andauthored
Feature/support rust http proxy (#6)
* feat: add support for rust_http_proxy * chore: remove unused launch.json file * aaa * chore: Remove LazyLock import and unused code in auto_proxy_stream.rs * chore: Remove unused code and imports in auto_proxy_stream.rs * chore: Remove unused code and imports in auto_proxy_stream.rs * chore: Remove unused code and imports in auto_proxy_stream.rs * chore: Update base64 dependency to version 0.22.1 * chore: Update TlsStream type in auto_proxy_stream.rs * chore: Update sslocal configuration to use 'host' instead of 'us.arloor.dev' * chore: Update sslocal configuration to use 'host' instead of 'us.arloor.dev' * chore: Refactor code in local/utils.rs for better readability and maintainability * chore: Refactor code in local/utils.rs for better readability and maintainability * chore: Refactor code in local/utils.rs for better readability and maintainability * chore: Enable https-tunnel feature in Cargo.toml * chore: Update Cargo.toml to enable basic features * refactor: Improve readability and maintainability of auto_proxy_stream.rs * chore: Refactor local/utils.rs for better readability and maintainability * chore: Add support for using an HTTP proxy over TLS as the server --------- Co-authored-by: liuganghuan <[email protected]>
1 parent a4919d0 commit 1cf50d2

File tree

17 files changed

+547
-182
lines changed

17 files changed

+547
-182
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
/dev
77
/*.log
88
/debian/*.log
9-
/.vscode
109
/*.json
1110
/restart.sh
1211
/udp_echo_server.py
1312
/.idea
1413
/.devcontainer
1514
.DS_Store
15+
.vscode/launch.json

.vscode/launch_example.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
// 使用 IntelliSense 了解相关属性。
3+
// 悬停以查看现有属性的描述。
4+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug",
11+
"program": "${workspaceFolder}/target/debug/sslocal",
12+
"args": [
13+
"--local-addr",
14+
"0.0.0.0:2080",
15+
"-k",
16+
"username:password",
17+
"-v",
18+
"-m",
19+
"aes-256-gcm", // reversed for compatibility
20+
"-s",
21+
"host:port"
22+
],
23+
"cwd": "${workspaceFolder}",
24+
"preLaunchTask": "rust: cargo build",
25+
"env": {
26+
"HOSTNAME": "test"
27+
}
28+
}
29+
]
30+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rust-analyzer.check.command": "check"
3+
}

.vscode/tasks.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "cargo",
6+
"command": "build",
7+
"args": [
8+
"--package",
9+
"${workspaceFolderBasename}",
10+
"--bin",
11+
"sslocal",
12+
"--features",
13+
"https-tunnel"
14+
],
15+
"problemMatcher": [
16+
"$rustc"
17+
],
18+
"group": {
19+
"kind": "build"
20+
},
21+
"label": "rust: cargo build"
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)