]> Cypherpunks repositories - gostls13.git/commit
net: document possible networks that can be passed to Control
authorfavonia <favonia@gmail.com>
Tue, 1 Oct 2024 10:49:19 +0000 (05:49 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 1 Oct 2024 18:17:20 +0000 (18:17 +0000)
commit8e478de4e6c91a0de763cf2e308f7598677f5c58
treec6bb0ceab3c406c7269690c3105f4189eaf7b970
parentb37b27b595898f6c5e65e3c78d76bc50caef8622
net: document possible networks that can be passed to Control

Before this patch, the documentation of Dialer.Control and
ListenConfig.Control did not specify what networks would be
passed to the Control function other than the "tcp" case.
It was thus challenging to use the Control function to filter
out certain networks. This patch documents all known networks.

Fixes #69693

Change-Id: I2ab10d68c4e4fac66d51d2cc232f02cf3b305e89
Reviewed-on: https://go-review.googlesource.com/c/go/+/617055
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/net/dial.go