Skip to content

Commit

Permalink
fix(firewall): fix wrong when make slice of firewall rule
Browse files Browse the repository at this point in the history
  • Loading branch information
👾cuong_vu🤡 committed Mar 11, 2022
1 parent a748837 commit 909b763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func FirewallRuleGet(name string) (FWRule, error) {

// FirewallRulesGet returns all rules defined in firewall.
func FirewallRulesGet() ([]FWRule, error) {
rules := make([]FWRule, 1000)
rules := make([]FWRule, 0, 1024)

u, fwPolicy, err := firewallAPIInit()
if err != nil {
Expand Down

0 comments on commit 909b763

Please sign in to comment.