Former-commit-id: 28d29aa4afeb3cd63d80ac4e4cf3294732614d9c [formerly 53b4fe0af0f7c53252e1738d42bb83c45375daa2] [formerly 6676a81d4556200a6ab4549fa8e25e8f7e226b3f [formerly 16895d0a56fcb7a8a9ad06ef201d996c10dbf934]]
Former-commit-id: 4188a500a3e240c194045f9c8c064af1850bcefb [formerly 4d6fe6cdfdab0d8d6c11d2e68620d68b6bc971d2]
Former-commit-id: e56fc240360e9de94bc84ef8176e1029649bb286
Former-commit-id: 465ee46f7667f356f47188c3243ca76e83b32e9e
Former-commit-id: 47d2cf966bd45250d105bf97ad0eef5c3c5c8133
Former-commit-id: 8384c68a7896edf3b498fd7c2b6c70d912b2d638 [formerly a8cec922bd25d452cacf6313f52ddc163a20c8bf]
Former-commit-id: f9ea7d5c90ab7a9b134c8fe4e55e926e334b6ae5
This commit is contained in:
Σrebe - Romain GERARD 2023-10-19 21:05:24 +02:00
parent 59658fb246
commit 2f216f6554
3 changed files with 8 additions and 2 deletions

2
Cargo.lock generated
View file

@ -1523,7 +1523,7 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "wstunnel"
version = "0.1.0"
version = "7.0.0"
dependencies = [
"ahash",
"anyhow",

View file

@ -1,6 +1,6 @@
[package]
name = "wstunnel"
version = "0.0.6"
version = "7.0.0"
edition = "2021"
repository = "https://github.com/erebe/wstunnel.git"

View file

@ -50,6 +50,12 @@ enum Commands {
struct Client {
/// Listen on local and forwards traffic from remote
/// Can be specified multiple times
/// examples:
/// 'tcp://1212:google.com:443' => listen locally on tcp on port 1212 and forward to google.com on port 443
/// 'udp://1212:1.1.1.1:53' => listen locally on udp on port 1212 and forward to cloudflare dns 1.1.1.1 on port 53
/// 'udp://1212:1.1.1.1:53?timeout_sec=10' => timeout_sec force timeout the tunnel after 10sec. Set it to 0 to disable the timeout
/// 'socks5://1212' => listen locally with socks5 on port 1212 and forward dynamically requested tunnel
/// 'socks5://1212?socket_so_mark=2' => each tunnel can have the socket_so_mark option, cf explanation on server command
#[arg(short='L', long, value_name = "{tcp,udp,socks5}://[BIND:]PORT:HOST:PORT", value_parser = parse_tunnel_arg)]
local_to_remote: Vec<LocalToRemote>,