mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-08 15:47:44 +00:00
minor changes
This commit is contained in:
parent
0128be4f1d
commit
ebe91081d4
2 changed files with 10 additions and 10 deletions
12
README.md
12
README.md
|
@ -40,14 +40,14 @@ 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
|
||||
-h, --help Print help (see more with '--help')
|
||||
-V, --version Print version
|
||||
-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
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue