From ba459aeef56c798978404b746555ae5cd4758e9d Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Mon, 24 Oct 2022 16:41:01 -0400 Subject: [PATCH] net/interfaces: don't call GetList in List.ForeachInterface It looks like this was left by mistake in 4a3e2842. Change-Id: Ie4e3d5842548cd2e8533b3552298fb1ce9ba761a Signed-off-by: Andrew Dunham --- net/interfaces/interfaces.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/interfaces/interfaces.go b/net/interfaces/interfaces.go index 69693b1ea..f0ca77913 100644 --- a/net/interfaces/interfaces.go +++ b/net/interfaces/interfaces.go @@ -232,10 +232,6 @@ func ForeachInterface(fn func(Interface, []netip.Prefix)) error { // all its addresses. The IPPrefix's IP is the IP address assigned to // the interface, and Bits are the subnet mask. func (ifaces List) ForeachInterface(fn func(Interface, []netip.Prefix)) error { - ifaces, err := GetList() - if err != nil { - return err - } for _, iface := range ifaces { addrs, err := iface.Addrs() if err != nil {