From d0664234e80cc85240e7f141fd6f6dd030908a50 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 22 Jun 2016 16:02:31 +0200 Subject: [PATCH] Make --signer default. --- parity/cli.rs | 4 ++-- parity/configuration.rs | 6 +++--- parity/main.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/parity/cli.rs b/parity/cli.rs index 1e77031e283..38e12413d91 100644 --- a/parity/cli.rs +++ b/parity/cli.rs @@ -115,7 +115,7 @@ API and Console Options: --dapps-path PATH Specify directory where dapps should be installed. [default: $HOME/.parity/dapps] - --signer Enable Trusted Signer WebSocket endpoint used by + --signer-off Disable Trusted Signer WebSocket endpoint used by Signer UIs. --signer-port PORT Specify the port of Trusted Signer server [default: 8180]. @@ -272,7 +272,7 @@ pub struct Args { pub flag_dapps_user: Option, pub flag_dapps_pass: Option, pub flag_dapps_path: String, - pub flag_signer: bool, + pub flag_signer_off: bool, pub flag_signer_port: u16, pub flag_signer_path: String, pub flag_no_token: bool, diff --git a/parity/configuration.rs b/parity/configuration.rs index 94835a8a9fa..4196564b5a8 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -432,10 +432,10 @@ impl Configuration { } pub fn signer_port(&self) -> Option { - if self.args.flag_signer { - Some(self.args.flag_signer_port) - } else { + if self.args.flag_signer_off { None + } else { + Some(self.args.flag_signer_port) } } } diff --git a/parity/main.rs b/parity/main.rs index a44cdf6d30d..979599d16ee 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -187,7 +187,7 @@ fn execute_client(conf: Configuration, spec: Spec, client_config: ClientConfig) let sync_config = conf.sync_config(&spec); // Create and display a new token for UIs. - if conf.args.flag_signer && !conf.args.flag_no_token { + if !conf.args.flag_signer_off && !conf.args.flag_no_token { new_token(conf.directories().signer).unwrap_or_else(|e| { die!("Error generating token: {:?}", e) });