From c1f895180b78cc5fade1b653281799ef395e0e65 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:43:47 -0400 Subject: [PATCH] Use 0.0.0.0 to check if a port is in use instead of 127.0.0.1 --- cmd/crates/stellar-ledger/tests/test/emulator_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/crates/stellar-ledger/tests/test/emulator_tests.rs b/cmd/crates/stellar-ledger/tests/test/emulator_tests.rs index 7a7d91883..6e9235bb4 100644 --- a/cmd/crates/stellar-ledger/tests/test/emulator_tests.rs +++ b/cmd/crates/stellar-ledger/tests/test/emulator_tests.rs @@ -354,7 +354,7 @@ fn get_available_ports(n: usize) -> (u16, u16) { let mut ports = Vec::with_capacity(n); while ports.len() < n { if let Some(port) = range.next() { - if let Ok(listener) = TcpListener::bind(("127.0.0.1", port)) { + if let Ok(listener) = TcpListener::bind(("0.0.0.0", port)) { ports.push(port); drop(listener); }