Skip to content

Commit

Permalink
Merge pull request WasmEdge#120 from second-state/fix/async_wasi
Browse files Browse the repository at this point in the history
Fix/async wasi
  • Loading branch information
L-jasmine authored Jul 30, 2024
2 parents de735ee + e21a697 commit 3b1e929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/async-wasi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
categories = ["WebAssembly"]
categories = ["wasm"]
description = "Async WASI for WasmEdge"
documentation = "https://docs.rs/async-wasi/"
edition = "2021"
Expand Down
3 changes: 1 addition & 2 deletions crates/async-wasi/src/snapshots/preview_1/async_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3b1e929

Please sign in to comment.