mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
fix proxy_test.go file to avoid ChooseHostInterface
This commit is contained in:
@@ -325,6 +325,10 @@ func NewProxier(loadBalancer LoadBalancer, listenIP net.IP, iptables iptables.In
|
||||
return nil
|
||||
}
|
||||
glog.Infof("Setting Proxy IP to %v", hostIP)
|
||||
return CreateProxier(loadBalancer, listenIP, iptables, hostIP)
|
||||
}
|
||||
|
||||
func CreateProxier(loadBalancer LoadBalancer, listenIP net.IP, iptables iptables.Interface, hostIP net.IP) *Proxier {
|
||||
glog.Infof("Initializing iptables")
|
||||
// Clean up old messes. Ignore erors.
|
||||
iptablesDeleteOld(iptables)
|
||||
|
Reference in New Issue
Block a user