Skip to content

Commit 93005c6

Browse files
committed
feat: add support for rust_http_proxy
1 parent a04e92c commit 93005c6

File tree

18 files changed

+508
-112
lines changed

18 files changed

+508
-112
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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
"--log-config",
14+
"log4rs.yml",
15+
"--local-addr",
16+
"0.0.0.0:2080",
17+
"-k",
18+
"username:password",
19+
"-v",
20+
"-m",
21+
"aes-256-gcm", // reversed for compatibility
22+
"-s",
23+
"host:port"
24+
],
25+
"cwd": "${workspaceFolder}",
26+
"preLaunchTask": "rust: cargo build",
27+
"env": {
28+
"HOSTNAME": "test"
29+
// "RUST_LOG": "debug"
30+
}
31+
}
32+
]
33+
}

.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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
"presentation": {
23+
"echo": true,
24+
"reveal": "silent",
25+
"focus": false,
26+
"panel": "shared",
27+
"showReuseMessage": true,
28+
"clear": false
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)