]> Cypherpunks repositories - gostls13.git/commit
net: ensure net.Addr values match the connection type on wasip1
authorAchille Roussel <achille.roussel@gmail.com>
Sat, 10 Jun 2023 20:13:05 +0000 (13:13 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 13 Jun 2023 21:06:56 +0000 (21:06 +0000)
commit54c75b40a2a98a2942b86584b2bff5255d584b1d
tree0c59a556e4f937d34ab6cdce8e456743e58ee350
parentdac75b66754978a89eeb143e2b7cabb830409fd8
net: ensure net.Addr values match the connection type on wasip1

net.FileListener returns values of type *net.TCPListener, which can be
asserted by the application. The (*net.TCPListener).Addr method
documents that the underlying type of its return value is *net.TCPAddr,
which is fixed by this change.

Change-Id: Ife9906716d1b512092024ba50797bf7831536b75
Reviewed-on: https://go-review.googlesource.com/c/go/+/502335
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/net/fd_wasip1.go
src/net/file_wasip1_test.go