|author||Cuong Manh Le <firstname.lastname@example.org>||Sun Dec 18 01:15:58 2022 +0700|
|committer||Gopher Robot <email@example.com>||Fri Dec 23 17:16:06 2022 +0000|
nettest: use RoutedInterface for probing network stack capability The ipv4/ipv6 support capability is done by explicitly listening on loopback interface. However, it can lead to false positive, especially for ipv6 case. For example, ipv6 can be enabled, but explicitly disable for loopback interface (for security, policy ...). This CL changes probeStack to use another approach, by looking for any interface that can route IP traffic and in "UP" state. If there's one, then the platform can do ipv4/ipv6 networking functionality. Fixes golang/go#57386 Change-Id: If911bc223b52c5a4562d3f61b4ee1032bdbec47c Reviewed-on: https://go-review.googlesource.com/c/net/+/458096 TryBot-Result: Gopher Robot <firstname.lastname@example.org> Auto-Submit: Cuong Manh Le <email@example.com> Reviewed-by: Benny Siegert <firstname.lastname@example.org> Reviewed-by: Matt Layher <email@example.com> Run-TryBot: Cuong Manh Le <firstname.lastname@example.org> Reviewed-by: David Chase <email@example.com>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run
go get -u golang.org/x/net. You can also manually git clone the repository to
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.