rsync iptables

This commit is contained in:
m1093782566
2017-08-30 16:48:06 +08:00
parent 4a6bbb9f50
commit 96882713b4
2 changed files with 52 additions and 26 deletions

View File

@@ -19,6 +19,7 @@ limitations under the License.
package ipvs
import (
"bytes"
"net"
"reflect"
"testing"
@@ -112,6 +113,9 @@ func NewFakeProxier(ipt utiliptables.Interface, ipvs utilipvs.Interface, nodeIPs
healthChecker: newFakeHealthChecker(),
ipvsScheduler: DefaultScheduler,
ipGetter: &fakeIPGetter{nodeIPs: nodeIPs},
iptablesData: bytes.NewBuffer(nil),
natChains: bytes.NewBuffer(nil),
natRules: bytes.NewBuffer(nil),
}
}