summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-04-04 23:04:08 +0200
committerDavid Lönnhager <david.l@mullvad.net>2025-04-10 14:39:49 +0200
commitb1a695e544b3ca7a7485c7fa7649aed6750adb30 (patch)
treedae1d6a6022e8ca75fe408c5616223ae0f11ad5b
parentf9f51e48f02a4805c15a20d8b6de516c80bdb9f4 (diff)
downloadmullvadvpn-b1a695e544b3ca7a7485c7fa7649aed6750adb30.tar.xz
mullvadvpn-b1a695e544b3ca7a7485c7fa7649aed6750adb30.zip
Update masque examples
-rw-r--r--mullvad-masque-proxy/examples/masque-client.rs4
-rw-r--r--mullvad-masque-proxy/examples/masque-server.rs4
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,
}