diff --git a/Cargo.lock b/Cargo.lock index 22b8208..a816a8a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1523,7 +1523,7 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "wstunnel" -version = "0.1.0" +version = "7.0.0" dependencies = [ "ahash", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 106c1af..1d1f66c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wstunnel" -version = "0.0.6" +version = "7.0.0" edition = "2021" repository = "https://github.com/erebe/wstunnel.git" diff --git a/src/main.rs b/src/main.rs index 04b74b6..86c9656 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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,