diff --git a/unix/vncserver b/unix/vncserver index ce77205..c02a567 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -1140,7 +1140,7 @@ sub PrepareDefaultsForPassingToXvnc { %default_opts; %config; - $websocketPort = $opt{"-websocketPort"} || \ + $websocketPort = $opt{"-websocketPort"} || GenerateWebsocketPortFromDisplayNumber(); $desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";