mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-12 14:54:55 +01:00
Allow the server port to be selected if it also may only exist in the config
This commit is contained in:
parent
f2eca17480
commit
6b104e3331
@ -760,7 +760,7 @@ class CreateServer extends CreateRecord
|
|||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$this->eggDefaultPorts = [];
|
$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;
|
$this->eggDefaultPorts['SERVER_PORT'] = null;
|
||||||
$set('assignments.SERVER_PORT', ['port' => null]);
|
$set('assignments.SERVER_PORT', ['port' => null]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user