Allow the server port to be selected if it also may only exist in the config

This commit is contained in:
Lance Pioch 2024-07-02 14:03:05 -04:00
parent f2eca17480
commit 6b104e3331

View File

@ -760,7 +760,7 @@ class CreateServer extends CreateRecord
$i = 0;
$this->eggDefaultPorts = [];
if (str_contains($get('startup'), '{{SERVER_PORT}}')) {
if (str_contains($get('startup'), '{{SERVER_PORT}}') || str_contains($this->egg->config_files, '{{server.allocations.default.port}}')) {
$this->eggDefaultPorts['SERVER_PORT'] = null;
$set('assignments.SERVER_PORT', ['port' => null]);
}