mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #12986 from zexi/webconsole-interface-cast
fix(webconsole): ISessionData convert to *session.RemoteConsoleInfo
This commit is contained in:
@@ -55,9 +55,9 @@ func (s *ConnectionServer) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
var srv http.Handler
|
||||
protocol := sessionObj.GetProtocol()
|
||||
info := sessionObj.ISessionData.(*session.RemoteConsoleInfo)
|
||||
switch protocol {
|
||||
case session.VNC, session.SPICE:
|
||||
info := sessionObj.ISessionData.(*session.RemoteConsoleInfo)
|
||||
if info.Hypervisor == api.HYPERVISOR_OPENSTACK {
|
||||
srv, err = NewWebsocketProxyServer(sessionObj)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user