Skip to content

Commit

Permalink
Create a HTML5 console type on top of VNC and WebMKS
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Jul 1, 2019
1 parent 85acbf7 commit 91e23fd
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@ def validate_remote_console_webmks_support
end

#
# VNC
# HTML5 selects the best available console type (VNC or WebMKS)
#
def remote_console_html5_acquire_ticket(userid, originating_server)
remote_console_vnc_acquire_ticket(userid, originating_server)
protocol = with_provider_object { |v| v.extraConfig["RemoteDisplay.vnc.enabled"] } ? 'vnc' : 'webmks'
send("remote_console_#{protocol}_acquire_ticket", userid, originating_server)
end

#
# VNC
#
def remote_console_vnc_acquire_ticket(userid, originating_server)
validate_remote_console_acquire_ticket("vnc")

Expand Down

0 comments on commit 91e23fd

Please sign in to comment.