mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-24 00:53:39 +01:00
vncserver: fix display :0 being ignored on CLI
This commit is contained in:
parent
8cd49ebbf8
commit
303fde284e
@ -1118,8 +1118,11 @@ sub ParseAndProcessCliOptions {
|
||||
ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
|
||||
ProcessCliOptions();
|
||||
CheckGeometryAndDepthAreSensible();
|
||||
$displayNumber = DetectDisplayNumberFromCliArgs() ||
|
||||
GetLowestAvailableDisplayNumber();
|
||||
|
||||
$displayNumber = DetectDisplayNumberFromCliArgs();
|
||||
if (!defined($displayNumber)) {
|
||||
$displayNumber = GetLowestAvailableDisplayNumber();
|
||||
}
|
||||
CheckCliOptionsForBeingValid();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user