mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
WebCommand::serveAction(): add optional parameters --listen and --port
refs #10682
This commit is contained in:
parent
80d3abed9d
commit
11c7531650
@ -21,8 +21,14 @@ class WebCommand extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
$fork = $this->params->get('daemonize');
|
$fork = $this->params->get('daemonize');
|
||||||
|
$listen = $this->params->get('listen');
|
||||||
|
$port = $this->params->get('port');
|
||||||
$documentRoot = $this->params->shift();
|
$documentRoot = $this->params->shift();
|
||||||
$socket = $this->params->shift();
|
if ($listen === null) {
|
||||||
|
$socket = $port === null ? $this->params->shift() : '0.0.0.0:' . $port;
|
||||||
|
} else {
|
||||||
|
$socket = $listen;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Sanity check!!
|
// TODO: Sanity check!!
|
||||||
if ($socket === null) {
|
if ($socket === null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user