minor changes

This commit is contained in:
ssrlive 2023-03-20 17:27:28 +08:00
parent 0128be4f1d
commit ebe91081d4
2 changed files with 10 additions and 10 deletions

View file

@ -40,12 +40,12 @@ configured to listen on a local UDP port and communicates with the upstream DNS
```
Tunnel interface to proxy.
Usage: tun2proxy --tun <TUN> --proxy <PROXY_TYPE> --addr <ADDR>
Usage: tun2proxy --tun <name> --proxy <type> --addr <ip:port>
Options:
-t, --tun <TUN> Name of the tun interface
-p, --proxy <PROXY_TYPE> What proxy type to run [possible values: socks5, http]
-a, --addr <ADDR> Server address with format IP:PORT
-t, --tun <name> Name of the tun interface
-p, --proxy <type> What proxy type to run [possible values: socks5, http]
-a, --addr <ip:port> Server address with format ip:port
-h, --help Print help (see more with '--help')
-V, --version Print version
```

View file

@ -15,15 +15,15 @@ use std::net::SocketAddr;
#[command(author, version, about = "Tunnel interface to proxy.", long_about = None)]
struct Args {
/// Name of the tun interface
#[arg(short, long)]
#[arg(short, long, value_name = "name")]
tun: String,
/// What proxy type to run
#[arg(short, long = "proxy", value_enum)]
#[arg(short, long = "proxy", value_name = "type", value_enum)]
proxy_type: ProxyType,
/// Server address with format IP:PORT
#[clap(short, long)]
/// Server address with format ip:port
#[clap(short, long, value_name = "ip:port")]
addr: SocketAddr,
}