From 32a299234f5269ad293e47dda3a306d8763237d4 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 29 Nov 2019 06:43:32 +1100 Subject: [PATCH] Fix bugs with beacon node cli --- beacon_node/src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beacon_node/src/config.rs b/beacon_node/src/config.rs index c72b3dc58d..d93cedc1a4 100644 --- a/beacon_node/src/config.rs +++ b/beacon_node/src/config.rs @@ -157,16 +157,16 @@ pub fn get_configs( client_config.rest_api.enabled = false; } - if let Some(address) = cli_args.value_of("api-address") { + if let Some(address) = cli_args.value_of("http-address") { client_config.rest_api.listen_address = address .parse::() - .map_err(|_| "api-address is not a valid IPv4 address.")?; + .map_err(|_| "http-address is not a valid IPv4 address.")?; } - if let Some(port) = cli_args.value_of("api-port") { + if let Some(port) = cli_args.value_of("http-port") { client_config.rest_api.port = port .parse::() - .map_err(|_| "api-port is not a valid u16.")?; + .map_err(|_| "http-port is not a valid u16.")?; } /*