Skip to content

Commit

Permalink
crypto/noise/tests: Bind to ipv4 int
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Mar 18, 2024
1 parent 32ea0ca commit 1e16a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/noise/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<SocketAddr>().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()),
Expand Down

0 comments on commit 1e16a28

Please sign in to comment.