3 @@ -2,6 +2,8 @@ module tailscale.com
7 +replace github.com/coreos/go-iptables => ./patched/go-iptables
10 filippo.io/mkcert v1.4.4
11 github.com/Microsoft/go-winio v0.6.1
12 --- a/patched/go-iptables/iptables/iptables.go
13 +++ b/patched/go-iptables/iptables/iptables.go
14 @@ -149,12 +149,39 @@ func New(opts ...option) (*IPTables, err
18 +func NewFake(opts ...option) (*IPTables, error) {
22 + proto: ProtocolIPv4,
25 + waitSupportSecond: false,
26 + hasRandomFully: false,
34 + for _, opt := range opts {
41 // New creates a new IPTables for the given proto.
42 // The proto will determine which command is used, either "iptables" or "ip6tables".
43 func NewWithProtocol(proto Protocol) (*IPTables, error) {
44 return New(IPFamily(proto), Timeout(0))
47 +func NewFakeWithProtocol(proto Protocol) (*IPTables, error) {
48 + return NewFake(IPFamily(proto), Timeout(0))
51 // Proto returns the protocol used by this IPTables.
52 func (ipt *IPTables) Proto() Protocol {