Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Fixes #88 VNC port does not display properly when already configured #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/rvc/modules/vnc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def view vm, opts
port = extraConfig.find { |x| x.key == 'RemoteDisplay.vnc.port' }
if !port
err "VNC enabled but no port assigned. Use vnc.off to reset config"
else
port = port.value
end
password = extraConfig.find { |x| x.key == 'RemoteDisplay.vnc.password' }
password = password ? password.value : ""
Expand Down