Ipv4 hard-coded

This commit is contained in:
Paulo Nascimento 2021-03-20 19:08:50 -03:00
parent e0baad92fe
commit 283705a54b

View File

@ -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)