]> Cypherpunks repositories - gostls13.git/commit
net: enable pure Go resolver for wasip1
authorChris O'Hara <cohara87@gmail.com>
Sat, 3 Jun 2023 01:51:02 +0000 (11:51 +1000)
committerGopher Robot <gobot@golang.org>
Thu, 29 Jun 2023 23:06:46 +0000 (23:06 +0000)
commit18e17e2cb12837ea2c8582ecdb0cc780f49a1aac
treeca80cd9a860d26fcb3001b3a64b7e0d7575a1968
parent1e97c515367103da5278fe7047df8d5ffd8a3267
net: enable pure Go resolver for wasip1

Top-level functions in the net package that only read files,
for example LookupPort(...), or LookupIP(host) where host resides
in /etc/hosts, now work on wasip1.

If the application has the ability to create sockets (for example,
when using a sockets extension to WASI preview 1), it's now
possible to do name resolution by passing a custom Dial function
to a Resolver instance.

Change-Id: I923886f67e336820bc89f09ea1855387c8dac61a
Reviewed-on: https://go-review.googlesource.com/c/go/+/500579
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Randy Reddig <ydnar@shaderlab.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/net/cgo_stub.go
src/net/conf.go
src/net/dnsclient_unix.go
src/net/dnsconfig_unix.go
src/net/lookup_fake.go
src/net/lookup_unix.go
src/net/net_fake.go
src/net/net_fake_js.go