dispatchrun / net

Go package implementing WASI socket extensions
Apache License 2.0
141 stars 8 forks source link

Name resolution via sock_getaddrinfo #1

Closed chriso closed 1 year ago

chriso commented 1 year ago

Since it doesn't look like we're going to be able to use the pure Go resolver in Go v1.21, this PR updates the library to use the sock_getaddrinfo function from the WasmEdge sockets extension.

Our wasi-go library supports it since https://github.com/stealthrocket/wasi-go/pull/41.

I've made it the default, but kept the old way there too behind a build tag.