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
  • Loading branch information
itegulov authored Dec 6, 2024
1 parent 5cd67e3 commit 1485a57
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 @@ -52,7 +52,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 @@ -444,7 +444,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(["anvil-zksync"]);
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([
"anvil-zksync",
Expand Down

0 comments on commit 1485a57

Please sign in to comment.