From fe58a4d38c389571ba045072063d1275049b7d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Thu, 19 Oct 2023 21:26:25 +0200 Subject: [PATCH] bump Former-commit-id: c957758c34df6318ebd851198bf5cc3d84d9b06d [formerly 293faa3e0f5c5c5431dad2f47f169c91c4c0d054] [formerly d8168008b84ee09a4d6ea3658fbfac14397eb8ff [formerly c3678e73b92679d5cd4311c95ad76d5749433c0d]] Former-commit-id: 5d22513d464feb69d0bfa7f4b12c050ee589d988 [formerly 5d13dced421dcc2e0d5da1c938d7a0742a596d82] Former-commit-id: 0c862754ab997fbd956f3c01faac13cd01693689 Former-commit-id: 62da13a937a32676cadbf428d79daeb7c7f08a19 Former-commit-id: defcdb90cf1cd4b4b35d2aed8dbb6baf0c1150e3 Former-commit-id: 232c3e6b623c0459407f37f014dc69eb65053e99 [formerly c8e2e95b88e2c0a27dd4d14f26d19a1f64f9c813] Former-commit-id: 0d62b4fa25a2c55270360a342d1c0176cb5de3fb --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index d10ca6c..ed29cc3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,11 +51,11 @@ 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 + /// '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 on udp force close the tunnel after 10sec. Set it to 0 to disable the timeout [default: 30] + /// '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, verbatim_doc_comment)] local_to_remote: Vec,