diff options
author | Kevin Krakauer <krakauer@google.com> | 2019-06-10 12:43:54 -0700 |
---|---|---|
committer | Kevin Krakauer <krakauer@google.com> | 2019-06-10 12:43:54 -0700 |
commit | 06a83df533244dc2b3b8adfc1bf0608d3753c1d9 (patch) | |
tree | f092b4a59234e561b8fce7b2a56dd8aea2cdc9b6 /pkg/tcpip | |
parent | 8afbd974da2483d8f81e3abde5c9d689719263cb (diff) |
Address more comments.
Change-Id: I83ae1079f3dcba6b018f59ab7898decab5c211d2
Diffstat (limited to 'pkg/tcpip')
-rw-r--r-- | pkg/tcpip/iptables/iptables.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/tcpip/iptables/iptables.go b/pkg/tcpip/iptables/iptables.go index bd54ef5a6..f1e1d1fad 100644 --- a/pkg/tcpip/iptables/iptables.go +++ b/pkg/tcpip/iptables/iptables.go @@ -33,7 +33,7 @@ const ( // DefaultTables returns a default set of tables. Each chain is set to accept // all packets. func DefaultTables() *IPTables { - tables := IPTables{ + return &IPTables{ Tables: map[string]Table{ tablenameNat: Table{ BuiltinChains: map[Hook]Chain{ @@ -67,8 +67,6 @@ func DefaultTables() *IPTables { Output: []string{tablenameMangle, tablenameNat}, }, } - - return &tables } func unconditionalAcceptChain(name string) Chain { |