Add validation to prevent invalid ports, closes #1034
This commit is contained in:
parent
bc3cb7bfd5
commit
40c74ae1e7
10 changed files with 205 additions and 152 deletions
|
@ -8,9 +8,10 @@ return [
|
|||
],
|
||||
'allocations' => [
|
||||
'server_using' => 'A server is currently assigned to this allocation. An allocation can only be deleted if no server is currently assigned.',
|
||||
'too_many_ports' => 'Adding more than 1000 ports at a single time is not supported. Please use a smaller range.',
|
||||
'too_many_ports' => 'Adding more than 1000 ports in a single range at once is not supported.',
|
||||
'invalid_mapping' => 'The mapping provided for :port was invalid and could not be processed.',
|
||||
'cidr_out_of_range' => 'CIDR notation only allows masks between /25 and /32.',
|
||||
'port_out_of_range' => 'Ports in an allocation must be greater than 1024 and less than or equal to 65535.',
|
||||
],
|
||||
'nest' => [
|
||||
'delete_has_servers' => 'A Nest with active servers attached to it cannot be deleted from the Panel.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue