Add doc for stdio

Former-commit-id: a1b0618072d0bffa8db07831eab8381c89499a0e [formerly 02f9a5ac0fd2559a9eadadff120f103e628c040a] [formerly 4c11271a639aa4c0b7d811e9a94b045215322ae9 [formerly 634de8fa73f91c420e0f513c68620bcb79b1b394]]
Former-commit-id: 91714982df8c0cf4d17c23f9700aafb30bd6605a [formerly 956d013005cc45bef67680ee1cd8bc57c00e0083]
Former-commit-id: 6cd944916d563535c847c8ee88998b573f67ac4a
Former-commit-id: dd8f1ac9baa5f10cba3da3df9f452a53f5941bdb
Former-commit-id: 2feac3d165a223a870f082634c65893d9d150fe1
Former-commit-id: c750b645b3f06689b05aac51dcf7649981f4592e [formerly bc3ad147f1b66e8cde6ed0708aebb833b51d8274]
Former-commit-id: d9f164eaa9706219bde5cd4aa74dd3e20e67ea5f
This commit is contained in:
Σrebe - Romain GERARD 2023-10-20 09:27:36 +02:00
parent fe58a4d38c
commit 81a0e9bbda

View file

@ -56,7 +56,8 @@ struct Client {
/// '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)]
/// 'stdio://google.com:443' => listen for data from stdio, mainly for `ssh -o ProxyCommand="wstunnel client -L stdio://%h:%p ws://localhost:8080" my-server`
#[arg(short='L', long, value_name = "{tcp,udp,socks5,stdio}://[BIND:]PORT:HOST:PORT", value_parser = parse_tunnel_arg, verbatim_doc_comment)]
local_to_remote: Vec<LocalToRemote>,
/// Domain name that will be use as SNI during TLS handshake