Skip to content

Commit

Permalink
Feature/support rust http proxy (#6)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
arloor and liuganghuan authored Sep 5, 2024
1 parent a4919d0 commit 1cf50d2
Show file tree
Hide file tree
Showing 17 changed files with 547 additions and 182 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 1cf50d2

Please sign in to comment.