mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user