Skip to content

Commit

Permalink
revert removed if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Apr 4, 2024
1 parent 71edfe8 commit 4555fb2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions beacon_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use beacon_chain::chain_config::{
DEFAULT_RE_ORG_PARENT_THRESHOLD,
};
use beacon_chain::TrustedSetup;
use clap::{ArgMatches, Id};
use clap::{ArgMatches, Id, parser::ValueSource};
use clap_utils::flags::DISABLE_MALLOC_TUNING_FLAG;
use clap_utils::{parse_flag, parse_required};
use client::{ClientConfig, ClientGenesis};
Expand Down Expand Up @@ -980,8 +980,11 @@ pub fn parse_listening_addresses(
return Err("No listening addresses provided".into());
}
(None, Some(ipv6)) => {

// A single ipv6 address was provided. Set the ports
warn!(log, "When listening only over IPv6, use the --port flag. The value of --port6 will be ignored.");
if cli_args.value_source("port6") == Some(ValueSource::CommandLine) {
warn!(log, "When listening only over IPv6, use the --port flag. The value of --port6 will be ignored.");
}

// use zero ports if required. If not, use the given port.
let tcp_port = use_zero_ports
Expand Down

0 comments on commit 4555fb2

Please sign in to comment.