userid0x0
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
3 deletions
-
Cargo.toml
-
src/main.rs
|
|
|
@ -13,7 +13,7 @@ description = "Convert Socks5 proxy into Http proxy" |
|
|
|
[dependencies] |
|
|
|
color-eyre = { version = "0.6", default-features = false } |
|
|
|
hyper = { version = "1.7", features = ["client","server","http1"] } |
|
|
|
clap = { version = "4", features = ["derive"] } |
|
|
|
clap = { version = "4", features = ["derive", "env"] } |
|
|
|
tokio-socks = "0.5" |
|
|
|
tokio = { version = "1.47", features = ["macros", "rt-multi-thread"] } |
|
|
|
bytes = "1.10" |
|
|
|
|
|
|
|
@ -17,11 +17,11 @@ use tokio::net::TcpListener; |
|
|
|
#[group()] |
|
|
|
struct AuthParams { |
|
|
|
/// Socks5 username
|
|
|
|
#[arg(short = 'u', long, required = false)] |
|
|
|
#[arg(short = 'u', long, env = "SOCKS5_USER", required = false)] |
|
|
|
username: String, |
|
|
|
|
|
|
|
/// Socks5 password
|
|
|
|
#[arg(short = 'P', long, required = false)] |
|
|
|
#[arg(short = 'P', long, env = "SOCKS5_PASSWORD", required = false)] |
|
|
|
password: String, |
|
|
|
} |
|
|
|
|
|
|
|
|