From 1e16a285727fdab38155f9b2536ba603d05f9b95 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 18 Mar 2024 18:38:34 +0200 Subject: [PATCH] crypto/noise/tests: Bind to ipv4 int Signed-off-by: Alexandru Vasile --- src/crypto/noise/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/noise/mod.rs b/src/crypto/noise/mod.rs index 558ef839..75cad0f6 100644 --- a/src/crypto/noise/mod.rs +++ b/src/crypto/noise/mod.rs @@ -749,7 +749,7 @@ mod tests { let peer1_id = PeerId::from_public_key(&keypair1.public().into()); let peer2_id = PeerId::from_public_key(&keypair2.public().into()); - let listener = TcpListener::bind("[::1]:0".parse::().unwrap()).await.unwrap(); + let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); let (stream1, stream2) = tokio::join!( TcpStream::connect(listener.local_addr().unwrap()),