]> Cypherpunks repositories - gostls13.git/commitdiff
net: remove unused linknames
authorSean Liao <sean@liao.dev>
Mon, 17 Nov 2025 19:25:21 +0000 (19:25 +0000)
committerSean Liao <sean@liao.dev>
Fri, 21 Nov 2025 20:48:05 +0000 (12:48 -0800)
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>

src/net/dnsconfig.go
src/net/interface.go

index 7919c3c3b5519c949aedd4ccd3a5a864d969145e..5a156ea0e4b6a7c7c9e009fe60a6dd8d621cb74b 100644 (file)
@@ -18,7 +18,6 @@ import (
 // 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.
index 5ae3a3a149d95453544d809533a0a233cf6fcdcb..3cf52c53713001c9ec8af1078bb5341135c06573 100644 (file)
@@ -18,16 +18,6 @@ import (
 // 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")