summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2019-09-16 11:30:43 +0200
committerLinus Färnstrand <linus@mullvad.net>2019-09-16 11:30:43 +0200
commit58002ac280a47587887af836fef81e9191c8b89a (patch)
tree997f91929463048b84592a60e6884043432b6319
parent6719fc6d5f6a634781fe07d8bd7b8731c8d26e35 (diff)
parent473ecc66dfc3e4f8b23d9e84feb79c7c96cfa529 (diff)
downloadmullvadvpn-58002ac280a47587887af836fef81e9191c8b89a.tar.xz
mullvadvpn-58002ac280a47587887af836fef81e9191c8b89a.zip
Merge branch 'fix-cli-custom-relay-panic'
-rw-r--r--CHANGELOG.md1
-rw-r--r--mullvad-cli/src/cmds/relay.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b03e59a035..29c4985508 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -58,6 +58,7 @@ Line wrap the file at 100 chars. Th
### Fixed
- Check and adjust relay and bridge constraints when they are updated, so no incompatible
combinations are used.
+- Fix panic when running CLI "mullvad relay set custom" without any more arguments.
## [2019.7-beta1] - 2019-08-08
diff --git a/mullvad-cli/src/cmds/relay.rs b/mullvad-cli/src/cmds/relay.rs
index efa319ef4a..a86270bcf0 100644
--- a/mullvad-cli/src/cmds/relay.rs
+++ b/mullvad-cli/src/cmds/relay.rs
@@ -35,6 +35,7 @@ impl Command for Relay {
.subcommand(
clap::SubCommand::with_name("custom")
.about("Set a custom VPN relay")
+ .setting(clap::AppSettings::SubcommandRequiredElseHelp)
.subcommand(clap::SubCommand::with_name("wireguard")
.arg(
clap::Arg::with_name("host")