diff --git a/firewall.go b/firewall.go index c7568b8..65be7dd 100755 --- a/firewall.go +++ b/firewall.go @@ -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 {