Skip to content

Commit

Permalink
feat: add support for rust_http_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Sep 5, 2024
1 parent a4919d0 commit d7216fd
Show file tree
Hide file tree
Showing 17 changed files with 544 additions and 179 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
/dev
/*.log
/debian/*.log
/.vscode
/*.json
/restart.sh
/udp_echo_server.py
/.idea
/.devcontainer
.DS_Store
.vscode/launch.json
30 changes: 30 additions & 0 deletions .vscode/launch_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/target/debug/sslocal",
"args": [
"--local-addr",
"0.0.0.0:2080",
"-k",
"username:password",
"-v",
"-m",
"aes-256-gcm", // reversed for compatibility
"-s",
"host:port"
],
"cwd": "${workspaceFolder}",
"preLaunchTask": "rust: cargo build",
"env": {
"HOSTNAME": "test"
}
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rust-analyzer.check.command": "check"
}
24 changes: 24 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"args": [
"--package",
"${workspaceFolderBasename}",
"--bin",
"sslocal",
"--features",
"https-tunnel"
],
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build"
},
"label": "rust: cargo build"
}
]
}
Loading

0 comments on commit d7216fd

Please sign in to comment.