Skip to content

Commit c2834dd

Browse files
fix(FirewallAlias): do not use default many_maximum constraint for 'address' and 'detail' fields #745
The real maximum number of entries allowed in a specific table by pf varies by system. This commit ensures a static limit is not set for entries.
1 parent 37cb3b8 commit c2834dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/FirewallAlias.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class FirewallAlias extends Model {
4949
default: [],
5050
allow_empty: true,
5151
many: true,
52+
many_maximum: 0, // Do not enforce a maximum number of entries
5253
delimiter: ' ',
5354
help_text: "Sets the host, network or port entries for the alias. When `type` is set to `host`, each
5455
entry must be a valid IP address or FQDN. When `type` is set to `network`, each entry must be a valid
@@ -59,6 +60,7 @@ class FirewallAlias extends Model {
5960
default: [],
6061
allow_empty: true,
6162
many: true,
63+
many_maximum: 0, // Do not enforce a maximum number of entries
6264
delimiter: '||',
6365
help_text: "Sets descriptions for each alias `address`. Values must match the order of the `address`
6466
value it relates to. For example, the first value specified here is the description for the first

0 commit comments

Comments
 (0)