Make --dev listen by default on /ip4/0.0.0.0/tcp/30333 (#11492)

If `--validator` is passed we also listen on this address and as `--dev` is a shortcut for multiple
CLI args, including `--validator`, we should make it consistent.
This commit is contained in:
Bastian Köcher
2022-05-22 09:19:07 +02:00
committed by GitHub
parent c75474f7b8
commit 7ff7457f4b
@@ -163,7 +163,7 @@ impl NetworkParams {
let port = self.port.unwrap_or(default_listen_port);
let listen_addresses = if self.listen_addr.is_empty() {
if is_validator {
if is_validator || is_dev {
vec![
Multiaddr::empty()
.with(Protocol::Ip6([0, 0, 0, 0, 0, 0, 0, 0].into()))