Remove unused Resolver interface in pkg/proxy/util

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
This commit is contained in:
Antonin Bas 2024-02-15 10:58:15 -08:00
parent b069ef6e13
commit 5fb002147b

View File

@ -17,7 +17,6 @@ limitations under the License.
package util package util
import ( import (
"context"
"fmt" "fmt"
"net" "net"
"strconv" "strconv"
@ -86,11 +85,6 @@ func IsLoopBack(ip string) bool {
return false return false
} }
// Resolver is an interface for net.Resolver
type Resolver interface {
LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)
}
// GetLocalAddrs returns a list of all network addresses on the local system // GetLocalAddrs returns a list of all network addresses on the local system
func GetLocalAddrs() ([]net.IP, error) { func GetLocalAddrs() ([]net.IP, error) {
var localAddrs []net.IP var localAddrs []net.IP