From 283705a54b105f20b1ac1b3e87f317fd96ad3234 Mon Sep 17 00:00:00 2001 From: Paulo Nascimento Date: Sat, 20 Mar 2021 19:08:50 -0300 Subject: [PATCH] Ipv4 hard-coded --- 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 c3308d0..1c0a399 100644 --- a/pkg/iptables/iptables.go +++ b/pkg/iptables/iptables.go @@ -380,7 +380,7 @@ func (c *Controller) Set(rules []Rule) error { } level.Debug(c.logger).Log("msg", "Applying Firewall Rule...", "Rule", ruleString, "Protocol", protocolName) - if err := rules[i].Add(c.client(proto)); err != nil { + if err := rules[i].Add(c.v4); err != nil { return fmt.Errorf("failed to add rule: %v", err) } level.Debug(c.logger).Log("msg", "Firewall Rule applied.", "Rule", ruleString, "Protocol", protocolName)