From cfb9d2eb73d9ecb0e5ea2ce5ef0d3f23593087be Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Mon, 17 Nov 2025 19:25:21 +0000 Subject: [PATCH] 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 Reviewed-by: Mark Freeman LUCI-TryBot-Result: Go LUCI --- src/net/dnsconfig.go | 1 - src/net/interface.go | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/src/net/dnsconfig.go b/src/net/dnsconfig.go index 7919c3c3b5..5a156ea0e4 100644 --- a/src/net/dnsconfig.go +++ b/src/net/dnsconfig.go @@ -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. diff --git a/src/net/interface.go b/src/net/interface.go index 5ae3a3a149..3cf52c5371 100644 --- a/src/net/interface.go +++ b/src/net/interface.go @@ -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") -- 2.52.0