Skip to content

wasmedge: fix v1 getlocaladdr/getpeeraddr#40

Merged
chriso merged 1 commit intomainfrom
wasmedge-v1-addr-fix
Jun 6, 2023
Merged

wasmedge: fix v1 getlocaladdr/getpeeraddr#40
chriso merged 1 commit intomainfrom
wasmedge-v1-addr-fix

Conversation

@chriso
Copy link
Copy Markdown
Contributor

@chriso chriso commented Jun 6, 2023

I incorrectly assumed that WasmEdge's v1 sock_getlocaladdr and sock_getpeeraddr functions would expect either AF_INET or AF_INET6 for the address type. Instead, they expect either 4 or 6 (reference).

With this fix, we're able to run the WasmEdge HTTP server examples, e.g. https://github.com/WasmEdge/wasmedge_hyper_demo.

@chriso chriso merged commit 7c55661 into main Jun 6, 2023
@chriso chriso deleted the wasmedge-v1-addr-fix branch June 6, 2023 23:37
@chriso chriso mentioned this pull request Jun 7, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants