Make --signer default. (#1392)
This commit is contained in:
parent
cb9b1e2ad5
commit
e346cbc7f9
@ -116,7 +116,7 @@ API and Console Options:
|
|||||||
--dapps-path PATH Specify directory where dapps should be installed.
|
--dapps-path PATH Specify directory where dapps should be installed.
|
||||||
[default: $HOME/.parity/dapps]
|
[default: $HOME/.parity/dapps]
|
||||||
|
|
||||||
--signer Enable Trusted Signer WebSocket endpoint used by
|
--signer-off Disable Trusted Signer WebSocket endpoint used by
|
||||||
Signer UIs.
|
Signer UIs.
|
||||||
--signer-port PORT Specify the port of Trusted Signer server
|
--signer-port PORT Specify the port of Trusted Signer server
|
||||||
[default: 8180].
|
[default: 8180].
|
||||||
@ -274,7 +274,7 @@ pub struct Args {
|
|||||||
pub flag_dapps_user: Option<String>,
|
pub flag_dapps_user: Option<String>,
|
||||||
pub flag_dapps_pass: Option<String>,
|
pub flag_dapps_pass: Option<String>,
|
||||||
pub flag_dapps_path: String,
|
pub flag_dapps_path: String,
|
||||||
pub flag_signer: bool,
|
pub flag_signer_off: bool,
|
||||||
pub flag_signer_port: u16,
|
pub flag_signer_port: u16,
|
||||||
pub flag_signer_path: String,
|
pub flag_signer_path: String,
|
||||||
pub flag_no_token: bool,
|
pub flag_no_token: bool,
|
||||||
|
@ -432,10 +432,10 @@ impl Configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn signer_port(&self) -> Option<u16> {
|
pub fn signer_port(&self) -> Option<u16> {
|
||||||
if self.args.flag_signer {
|
if self.args.flag_signer_off {
|
||||||
Some(self.args.flag_signer_port)
|
|
||||||
} else {
|
|
||||||
None
|
None
|
||||||
|
} else {
|
||||||
|
Some(self.args.flag_signer_port)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,7 @@ fn execute_client(conf: Configuration, spec: Spec, client_config: ClientConfig)
|
|||||||
let sync_config = conf.sync_config(&spec);
|
let sync_config = conf.sync_config(&spec);
|
||||||
|
|
||||||
// Create and display a new token for UIs.
|
// 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| {
|
new_token(conf.directories().signer).unwrap_or_else(|e| {
|
||||||
die!("Error generating token: {:?}", e)
|
die!("Error generating token: {:?}", e)
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user