Skip to content

Commit

Permalink
use protocol set by the rule
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Aug 29, 2024
1 parent ca9571e commit 4c69f89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller/linodefirewall_controller_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func processACL(firewall *infrav1alpha2.LinodeFirewall) (
Action: rule.Action,
Label: ruleLabel,
Description: fmt.Sprintf("Rule %d, Created by CAPL: %s", i, rule.Label),
Protocol: linodego.TCP,
Protocol: rule.Protocol,
Ports: rule.Ports,
Addresses: linodego.NetworkAddresses{IPv4: &v4chunk},
})
Expand All @@ -193,7 +193,7 @@ func processACL(firewall *infrav1alpha2.LinodeFirewall) (
Action: rule.Action,
Label: ruleLabel,
Description: fmt.Sprintf("Rule %d, Created by CAPL: %s", i, rule.Label),
Protocol: linodego.TCP,
Protocol: rule.Protocol,
Ports: rule.Ports,
Addresses: linodego.NetworkAddresses{IPv6: &v6chunk},
})
Expand Down Expand Up @@ -232,7 +232,7 @@ func processACL(firewall *infrav1alpha2.LinodeFirewall) (
Action: rule.Action,
Label: ruleLabel,
Description: fmt.Sprintf("Rule %d, Created by CAPL: %s", i, rule.Label),
Protocol: linodego.TCP,
Protocol: rule.Protocol,
Ports: rule.Ports,
Addresses: linodego.NetworkAddresses{IPv4: &v4chunk},
})
Expand All @@ -247,7 +247,7 @@ func processACL(firewall *infrav1alpha2.LinodeFirewall) (
Action: rule.Action,
Label: ruleLabel,
Description: fmt.Sprintf("Rule %d, Created by CAPL: %s", i, rule.Label),
Protocol: linodego.TCP,
Protocol: rule.Protocol,
Ports: rule.Ports,
Addresses: linodego.NetworkAddresses{IPv6: &v6chunk},
})
Expand Down

0 comments on commit 4c69f89

Please sign in to comment.