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..895b10509 100644 --- a/crates/async-wasi/src/snapshots/preview_1/async_socket.rs +++ b/crates/async-wasi/src/snapshots/preview_1/async_socket.rs @@ -778,8 +778,7 @@ pub mod addrinfo { let addr = if node.is_empty() { 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 {