Skip to content

Commit

Permalink
Make --dev listen by default on /ip4/0.0.0.0/tcp/30333 (paritytec…
Browse files Browse the repository at this point in the history
…h#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.
  • Loading branch information
bkchr authored and ark0f committed Feb 27, 2023
1 parent 2fd8382 commit 0ee7e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/cli/src/params/network_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 0ee7e19

Please sign in to comment.