diff --git a/crates/snot-agent/src/cli.rs b/crates/snot-agent/src/cli.rs index b4d80e45..4d5a2845 100644 --- a/crates/snot-agent/src/cli.rs +++ b/crates/snot-agent/src/cli.rs @@ -18,7 +18,7 @@ pub struct Cli { /// Path to the directory containing the stored data and configuration pub path: PathBuf, - #[clap(long = "bind_addr", default_value_t = IpAddr::V4(Ipv4Addr::UNSPECIFIED))] + #[clap(long = "bind", default_value_t = IpAddr::V4(Ipv4Addr::UNSPECIFIED))] pub bind_addr: IpAddr, /// Specify the IP address and port for the node server #[clap(long = "node", default_value_t = 4130)] diff --git a/scripts/agent.sh b/scripts/agent.sh index 9afb9d61..0279fbb2 100755 --- a/scripts/agent.sh +++ b/scripts/agent.sh @@ -15,7 +15,7 @@ DATA_PATH="$(pwd)/snot-data/$INDEX" echo "Starting ${DATA_PATH}" cargo run --release -p snot-agent -- \ --path "$DATA_PATH" \ - --bind_addr "0.0.0.0" \ + --bind "0.0.0.0" \ --bft "500$INDEX" \ --rest "303$INDEX" \ --node "413$INDEX" diff --git a/scripts/start.sh b/scripts/start.sh index c137368b..e509e821 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -32,9 +32,10 @@ STORAGE="${LEDGER}_${MODE}_${INDEX}" rm -rf $STORAGE cp -r $LEDGER $STORAGE -echo "Starting $MODE $INDEX" "${TEST_PATH}/${MODE}_${INDEX}.log" +echo "Starting $MODE $INDEX" "${TEST_PATH}/${MODE}_${INDEX}.log" $BINARY --log "${TEST_PATH}/${MODE}_${INDEX}.log" \ run --type $MODE \ + --bind "0.0.0.0" \ --bft "500$INDEX" \ --rest "303$INDEX" \ --node "413$INDEX" \