diff --git a/crates/async-wasi/src/snapshots/preview_1/async_socket.rs b/crates/async-wasi/src/snapshots/preview_1/async_socket.rs index 0efce933c..866963fea 100644 --- a/crates/async-wasi/src/snapshots/preview_1/async_socket.rs +++ b/crates/async-wasi/src/snapshots/preview_1/async_socket.rs @@ -779,7 +779,7 @@ pub mod addrinfo { None } else { // let node = format!("{node}:0"); - (node, 0).to_socket_addrs()?.next() + (node, 0).to_socket_addrs()?.find(|addr| addr.is_ipv4()) }; if let Some(std::net::SocketAddr::V4(ipv4)) = addr {