From 9dca6386e3814192fce534c1385f8d8d535de914 Mon Sep 17 00:00:00 2001 From: Paulo Nascimento Date: Sat, 20 Mar 2021 19:38:31 -0300 Subject: [PATCH] ipv4 and ipv6 detection using regex --- pkg/iptables/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/iptables/iptables.go b/pkg/iptables/iptables.go index f8827e7..3a74c38 100755 --- a/pkg/iptables/iptables.go +++ b/pkg/iptables/iptables.go @@ -383,7 +383,7 @@ func (c *Controller) Set(rules []Rule) error { if err := rules[i].Add(c.client(rules[i].Proto())); err != nil { return fmt.Errorf("failed to add rule: %v", err) } - c.rules = append(c.rulIes, rules[i]) + c.rules = append(c.rules, rules[i]) } }