diff --git a/beacon_node/src/config.rs b/beacon_node/src/config.rs index 07292e3e527..928ea273307 100644 --- a/beacon_node/src/config.rs +++ b/beacon_node/src/config.rs @@ -971,10 +971,8 @@ pub fn parse_listening_addresses( } (None, Some(ipv6)) => { // A single ipv6 address was provided. Set the ports - - if parse_flag(cli_args, "port6") { - warn!(log, "When listening only over IPv6, use the --port flag. The value of --port6 will be ignored.") - } + 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 .then(unused_port::unused_tcp6_port)