diff options
| author | Sean Liao <sean@liao.dev> | 2025-11-17 19:25:21 +0000 |
|---|---|---|
| committer | Sean Liao <sean@liao.dev> | 2025-11-21 12:48:05 -0800 |
| commit | cfb9d2eb73d9ecb0e5ea2ce5ef0d3f23593087be (patch) | |
| tree | db331e7c8a0e062f8755ecbd928094697f0851f2 /src/net | |
| parent | 65ef314f89d7eb8c1a4937edd075127a00da0ecb (diff) | |
| download | go-cfb9d2eb73d9ecb0e5ea2ce5ef0d3f23593087be.tar.xz | |
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>
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/dnsconfig.go | 1 | ||||
| -rw-r--r-- | src/net/interface.go | 10 |
2 files changed, 0 insertions, 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") |
