net: remove unused linknames errNoSuchInterface: https://github.com/SagerNet/sing/commit/a33349366d899068145f2d0e3ea0f5b2632fa3f2 defaultNS: https://github.com/MetaCubeX/mihomo/commit/4a16d22398116a88a230071278be536491a8cdce For #67401 Change-Id: I2945bc5edf8a474315283c57259ba6c2a0b85776 Reviewed-on: https://go-review.googlesource.com/c/go/+/721161 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Mark Freeman <markfreeman@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/src/net/dnsconfig.go b/src/net/dnsconfig.go index 7919c3c..5a156ea 100644 --- a/src/net/dnsconfig.go +++ b/src/net/dnsconfig.go
@@ -18,7 +18,6 @@ // Notable members of the hall of shame include: // - github.com/pojntfx/hydrapp/hydrapp // - github.com/mtibben/androiddnsfix -// - github.com/metacubex/mihomo // // Do not remove or change the type signature. // See go.dev/issue/67401.
diff --git a/src/net/interface.go b/src/net/interface.go index 5ae3a3a..3cf52c5 100644 --- a/src/net/interface.go +++ b/src/net/interface.go
@@ -18,16 +18,6 @@ // BUG(mikio): On AIX, DragonFly BSD, NetBSD, OpenBSD, Plan 9 and // Solaris, the MulticastAddrs method of Interface is not implemented. -// errNoSuchInterface should be an internal detail, -// but widely used packages access it using linkname. -// Notable members of the hall of shame include: -// - github.com/sagernet/sing -// -// Do not remove or change the type signature. -// See go.dev/issue/67401. -// -//go:linkname errNoSuchInterface - var ( errInvalidInterface = errors.New("invalid network interface") errInvalidInterfaceIndex = errors.New("invalid network interface index")