mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
Firewall: Rules - limit number of sources/destinations, closes https://github.com/opnsense/core/issues/8334
This commit is contained in:
parent
8a9fe288c3
commit
b52ce9da7b
@ -241,7 +241,11 @@ function filter_rule_address($adr) {
|
||||
$result[] = $item;
|
||||
}
|
||||
}
|
||||
$padr = implode(',', $result);
|
||||
$tmp = array_slice($result, 0, 5);
|
||||
if (count($result) > 5) {
|
||||
$tmp[] = '[...]';
|
||||
}
|
||||
$padr = implode(' , ', $tmp);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user