Improve logic handle auto-allocation of ports for a server
This commit is contained in:
parent
7638ffccde
commit
c6bd7ff661
10 changed files with 201 additions and 79 deletions
|
@ -21,9 +21,9 @@ class AdvancedSettingsFormRequest extends AdminFormRequest
|
|||
'pterodactyl:guzzle:connect_timeout' => 'required|integer|between:1,60',
|
||||
'pterodactyl:console:count' => 'required|integer|min:1',
|
||||
'pterodactyl:console:frequency' => 'required|integer|min:10',
|
||||
'allocation:enabled' => 'required|in:true,false',
|
||||
'pterodactyl:allocation:start' => 'required|integer|between:2000,65535',
|
||||
'pterodactyl:allocation:stop' => 'required|integer|between:2000,65535',
|
||||
'pterodactyl:client_features:allocations:enabled' => 'required|in:true,false',
|
||||
'pterodactyl:client_features:allocations:range_start' => 'required|integer|between:1024,65535',
|
||||
'pterodactyl:client_features:allocations:range_end' => 'required|integer|between:1024,65535',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -40,9 +40,9 @@ class AdvancedSettingsFormRequest extends AdminFormRequest
|
|||
'pterodactyl:guzzle:connect_timeout' => 'HTTP Connection Timeout',
|
||||
'pterodactyl:console:count' => 'Console Message Count',
|
||||
'pterodactyl:console:frequency' => 'Console Frequency Tick',
|
||||
'allocation:enabled' => 'Auto Create Allocations Enabled',
|
||||
'pterodactyl:allocation:start' => 'Starting Port',
|
||||
'pterodactyl:allocation:stop' => 'Ending Port',
|
||||
'pterodactyl:client_features:allocations:enabled' => 'Auto Create Allocations Enabled',
|
||||
'pterodactyl:client_features:allocations:range_start' => 'Starting Port',
|
||||
'pterodactyl:client_features:allocations:range_end' => 'Ending Port',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue