Remove unused Resolver interface in pkg/proxy/util
Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user