From 88a7e5a2ca9aa51df3652ef1b8923fe852210d73 Mon Sep 17 00:00:00 2001 From: Alessandro Tagliapietra Date: Tue, 13 Sep 2022 01:57:45 +0000 Subject: [PATCH] Fix ganache test endpoint for ipv6 machines (#3563) ## Issue Addressed #3562 ## Proposed Changes Change the fork endpoint from `localhost` to `127.0.0.1` to match the ganache default listening host. This way it doesn't try (and fail) to connect to `::1` on IPV6 machines. ## Additional Info First PR --- testing/eth1_test_rig/src/ganache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/eth1_test_rig/src/ganache.rs b/testing/eth1_test_rig/src/ganache.rs index 9b6a33ff59..d8df3fd8ae 100644 --- a/testing/eth1_test_rig/src/ganache.rs +++ b/testing/eth1_test_rig/src/ganache.rs @@ -166,7 +166,7 @@ impl GanacheInstance { } fn endpoint(port: u16) -> String { - format!("http://localhost:{}", port) + format!("http://127.0.0.1:{}", port) } impl Drop for GanacheInstance {