vncserver: fix case of -websocketPort not specified

This commit is contained in:
Dmitry Maksyoma 2021-10-30 00:52:34 +13:00
parent 628033af45
commit 27f0ed29ca

View File

@ -1140,7 +1140,7 @@ sub PrepareDefaultsForPassingToXvnc {
%default_opts;
%config;
$websocketPort = $opt{"-websocketPort"} || \
$websocketPort = $opt{"-websocketPort"} ||
GenerateWebsocketPortFromDisplayNumber();
$desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";