diff options
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/relay.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mullvad-cli/src/cmds/relay.rs b/mullvad-cli/src/cmds/relay.rs index 8114e656f9..6451097891 100644 --- a/mullvad-cli/src/cmds/relay.rs +++ b/mullvad-cli/src/cmds/relay.rs @@ -172,12 +172,12 @@ impl Command for Relay { .possible_values(&["any", "4", "6"]), ) .arg( - clap::Arg::with_name("exit location") - .help("Exit endpoint to use. This can be 'any', 'none', or \ - any location that is valid with 'set location', \ - such as 'se got'.") + clap::Arg::with_name("entry location") + .help("Entry endpoint to use. This can be 'any', 'none', or \ + any location that is valid with 'set location', \ + such as 'se got'.") .default_value("none") - .long("exit-location") + .long("entry-location") .multiple(true) .min_values(1) .max_values(3), @@ -528,8 +528,8 @@ impl Relay { async fn set_wireguard_constraints(&self, matches: &clap::ArgMatches<'_>) -> Result<()> { let port = parse_port_constraint(matches.value_of("port").unwrap())?; let ip_version = parse_ip_version_constraint(matches.value_of("ip version").unwrap()); - let exit_location = - parse_exit_location_constraint(matches.values_of("exit location").unwrap()); + let entry_location = + parse_entry_location_constraint(matches.values_of("entry location").unwrap()); self.update_constraints(RelaySettingsUpdate { r#type: Some(relay_settings_update::Type::Normal( @@ -539,7 +539,7 @@ impl Relay { ip_version: ip_version.option().map(|protocol| IpVersionConstraint { protocol: protocol as i32, }), - exit_location, + entry_location, }), ..Default::default() }, @@ -815,7 +815,7 @@ fn parse_ip_version_constraint(raw_protocol: &str) -> Constraint<IpVersion> { } } -fn parse_exit_location_constraint<'a, T: Iterator<Item = &'a str>>( +fn parse_entry_location_constraint<'a, T: Iterator<Item = &'a str>>( mut location: T, ) -> Option<RelayLocation> { let country = location.next().unwrap(); |
