diff options
| -rw-r--r-- | mullvad-masque-proxy/examples/masque-client.rs | 4 | ||||
| -rw-r--r-- | mullvad-masque-proxy/examples/masque-server.rs | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mullvad-masque-proxy/examples/masque-client.rs b/mullvad-masque-proxy/examples/masque-client.rs index 893c0e7ffc..780e95d044 100644 --- a/mullvad-masque-proxy/examples/masque-client.rs +++ b/mullvad-masque-proxy/examples/masque-client.rs @@ -9,6 +9,7 @@ use std::{ #[derive(Parser, Debug)] pub struct ClientArgs { + /// Destination to forward to #[arg(long, short = 't')] target_addr: SocketAddr, @@ -20,12 +21,15 @@ pub struct ClientArgs { #[arg(long, short = 's')] server_addr: SocketAddr, + /// Server hostname/authority #[arg(long, short = 'H')] server_hostname: String, + /// Local bind port #[arg(long, short = 'p', default_value = "0")] bind_port: u16, + /// Maximum packet size #[arg(long, short = 'S', default_value = "1280")] maximum_packet_size: u16, } diff --git a/mullvad-masque-proxy/examples/masque-server.rs b/mullvad-masque-proxy/examples/masque-server.rs index 4142b2d146..9c07423d9c 100644 --- a/mullvad-masque-proxy/examples/masque-server.rs +++ b/mullvad-masque-proxy/examples/masque-server.rs @@ -10,6 +10,7 @@ use std::{ #[derive(Parser, Debug)] pub struct ServerArgs { + /// Bind address #[arg(long, short = 'b', default_value = "0.0.0.0:0")] bind_addr: SocketAddr, @@ -24,7 +25,8 @@ pub struct ServerArgs { /// Allowed IPs #[arg(long = "allowed-ip", short = 'a', required = false)] allowed_ips: Vec<IpAddr>, - /// Maximums packet size + + /// Maximum packet size #[arg(long, short = 'm', default_value = "1700")] maximum_packet_size: u16, } |
