Merge pull request #123327 from antoninbas/remove-unused-interface-in-pkg/proxy/util

Remove unused Resolver interface in pkg/proxy/util
This commit is contained in:
Kubernetes Prow Robot
2024-02-20 16:51:17 -08:00
committed by GitHub

View File

@@ -17,7 +17,6 @@ limitations under the License.
package util
import (
"context"
"fmt"
"net"
"strconv"
@@ -86,11 +85,6 @@ func IsLoopBack(ip string) bool {
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
func GetLocalAddrs() ([]net.IP, error) {
var localAddrs []net.IP