From d47f8b766b3c6290697411ad52e276b718155b43 Mon Sep 17 00:00:00 2001 From: BieHDC <43303168+BieHDC@users.noreply.github.com> Date: Thu, 26 Dec 2024 22:36:13 +0000 Subject: [PATCH] Update interface_android.go time to end this clownshow --- interface_android.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/interface_android.go b/interface_android.go index 6b080c5..2ebba7b 100644 --- a/interface_android.go +++ b/interface_android.go @@ -161,11 +161,15 @@ type ipv6ZoneCache struct { toName map[int]string // interface index to its name } -//go:linkname zoneCache net.zoneCache -var zoneCache ipv6ZoneCache +var zoneCache = ipv6ZoneCache{ + toIndex: make(map[string]int), + toName: make(map[int]string), +} -//go:linkname zoneCacheX golang.org/x/net/internal/socket.zoneCache -var zoneCacheX ipv6ZoneCache +var zoneCacheX = ipv6ZoneCache{ + toIndex: make(map[string]int), + toName: make(map[int]string), +} // update refreshes the network interface information if the cache was last // updated more than 1 minute ago, or if force is set. It reports whether the