diff --git a/veilid-server/src/cmdline.rs b/veilid-server/src/cmdline.rs index ccb888bb..5e57e9b8 100644 --- a/veilid-server/src/cmdline.rs +++ b/veilid-server/src/cmdline.rs @@ -155,6 +155,7 @@ fn do_clap_matches(default_config_path: &OsStr) -> Result EyreResult<(Settings, ArgMatches)> { settingsrw.core.protected_store.new_device_encryption_key_password = Some(matches.value_of("new-password").unwrap().to_owned()); } if matches.occurrences_of("network-key") != 0 { - settingsrw.core.network.network_key_password = Some(matches.value_of("new-password").unwrap().to_owned()); + settingsrw.core.network.network_key_password = Some(matches.value_of("network-key").unwrap().to_owned()); } if matches.occurrences_of("dump-txt-record") != 0 {