test for and set bridge-nf-call-iptables sysctl

This commit is contained in:
Tim Hockin
2015-08-14 22:36:11 -07:00
parent 9cf33772b4
commit 3a5c23d727
2 changed files with 17 additions and 6 deletions

View File

@@ -159,7 +159,8 @@ func (s *ProxyServer) Run(_ []string) error {
if !s.ForceUserspaceProxy && shouldUseIptables {
glog.V(2).Info("Using iptables Proxier.")
proxierIptables, err := iptables.NewProxier(utiliptables.New(exec.New(), protocol), s.SyncPeriod)
execer := exec.New()
proxierIptables, err := iptables.NewProxier(utiliptables.New(execer, protocol), execer, s.SyncPeriod)
if err != nil {
glog.Fatalf("Unable to create proxier: %v", err)
}