Bump structopt and fix compilation. (#2736)

This commit is contained in:
Tomasz Drwięga
2019-05-30 17:30:21 +02:00
committed by Bastian Köcher
parent 7af8604cbe
commit d4e1bb518d
3 changed files with 35 additions and 14 deletions
+4 -4
View File
@@ -50,7 +50,7 @@ pub use structopt::clap::App;
use params::{
RunCmd, PurgeChainCmd, RevertCmd, ImportBlocksCmd, ExportBlocksCmd, BuildSpecCmd,
NetworkConfigurationParams, MergeParameters, TransactionPoolParams,
NodeKeyParams, NodeKeyType
NodeKeyParams, NodeKeyType, Cors,
};
pub use params::{NoCustom, CoreParams, SharedParams};
pub use traits::{GetLogFilter, AugmentClap};
@@ -485,9 +485,9 @@ where
config.rpc_ws_max_connections = cli.ws_max_connections;
config.rpc_cors = cli.rpc_cors.unwrap_or_else(|| if is_dev {
log::warn!("Running in --dev mode, RPC CORS has been disabled.");
None
Cors::All
} else {
Some(vec![
Cors::List(vec![
"http://localhost:*".into(),
"http://127.0.0.1:*".into(),
"https://localhost:*".into(),
@@ -495,7 +495,7 @@ where
"https://polkadot.js.org".into(),
"https://substrate-ui.parity.io".into(),
])
});
}).into();
// Override telemetry
if cli.no_telemetry {