Skip to content

Commit

Permalink
fix: default host to 0.0.0.0 (#478)
Browse files Browse the repository at this point in the history
* default host to 0.0.0.0

* fix test

(cherry picked from commit 1485a57)
  • Loading branch information
itegulov committed Dec 6, 2024
1 parent 16c4d6d commit c32667d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct Cli {
long,
value_name = "IP_ADDR",
env = "ANVIL_ZKSYNC_IP_ADDR",
default_value = "127.0.0.1",
default_value = "0.0.0.0",
value_delimiter = ',',
help_heading = "Network Options"
)]
Expand Down Expand Up @@ -396,7 +396,7 @@ mod tests {
fn can_parse_host() {
// Test adapted from https://github.com/foundry-rs/foundry/blob/398ef4a3d55d8dd769ce86cada5ec845e805188b/crates/anvil/src/cmd.rs#L895
let args = Cli::parse_from(["era_test_node"]);
assert_eq!(args.host, vec![IpAddr::V4(Ipv4Addr::LOCALHOST)]);
assert_eq!(args.host, vec![IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0))]);

let args = Cli::parse_from([
"era_test_node",
Expand Down

0 comments on commit c32667d

Please sign in to comment.