diff --git a/lib/rvc/modules/vnc.rb b/lib/rvc/modules/vnc.rb index e37a529..159146b 100644 --- a/lib/rvc/modules/vnc.rb +++ b/lib/rvc/modules/vnc.rb @@ -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 : ""