summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-04-27 15:02:37 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-04-29 09:04:38 +0200
commit999b553f2add38693fa13b770624866efad1f17f (patch)
treee7c0bed19f7373240a14fa7b09d293235f4f462c /mullvad-cli/src
parent8717f4614c0d549ed423ec47cf231e3f5cc20d37 (diff)
downloadmullvadvpn-999b553f2add38693fa13b770624866efad1f17f.tar.xz
mullvadvpn-999b553f2add38693fa13b770624866efad1f17f.zip
Renamed block-when-disconnected to always-require-vpn in CLI
Diffstat (limited to 'mullvad-cli/src')
-rw-r--r--mullvad-cli/src/cmds/block_when_disconnected.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mullvad-cli/src/cmds/block_when_disconnected.rs b/mullvad-cli/src/cmds/block_when_disconnected.rs
index cd585720dd..57239963d7 100644
--- a/mullvad-cli/src/cmds/block_when_disconnected.rs
+++ b/mullvad-cli/src/cmds/block_when_disconnected.rs
@@ -5,7 +5,7 @@ pub struct BlockWhenDisconnected;
impl Command for BlockWhenDisconnected {
fn name(&self) -> &'static str {
- "block-when-disconnected"
+ "always-require-vpn"
}
fn clap_subcommand(&self) -> clap::App<'static, 'static> {
@@ -14,7 +14,7 @@ impl Command for BlockWhenDisconnected {
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
.subcommand(
clap::SubCommand::with_name("set")
- .about("Change the block when disconnected setting")
+ .about("Change the always require VPN setting")
.arg(
clap::Arg::with_name("policy")
.required(true)
@@ -23,7 +23,7 @@ impl Command for BlockWhenDisconnected {
)
.subcommand(
clap::SubCommand::with_name("get")
- .about("Display the current block when disconnected setting"),
+ .about("Display the current always require VPN setting"),
)
}
@@ -43,7 +43,7 @@ impl BlockWhenDisconnected {
fn set(&self, block_when_disconnected: bool) -> Result<()> {
let mut rpc = new_rpc_client()?;
rpc.set_block_when_disconnected(block_when_disconnected)?;
- println!("Changed block when disconnected setting");
+ println!("Changed always require VPN setting");
Ok(())
}