summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/tcpip/iptables/iptables.go4
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 {