mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-28 19:45:07 +08:00
fix(websonsole): vnc query (#15195)
This commit is contained in:
@@ -214,8 +214,12 @@ func handleServerRemoteConsole(ctx context.Context, w http.ResponseWriter, r *ht
|
||||
httperrors.GeneralServerError(ctx, w, err)
|
||||
return
|
||||
}
|
||||
query := env.Body
|
||||
if query != nil {
|
||||
query, _ = query.Get("webconsole")
|
||||
}
|
||||
srvId := env.Params["<id>"]
|
||||
info, err := session.NewRemoteConsoleInfoByCloud(env.ClientSessin, srvId, env.Query)
|
||||
info, err := session.NewRemoteConsoleInfoByCloud(env.ClientSessin, srvId, query)
|
||||
if err != nil {
|
||||
httperrors.GeneralServerError(ctx, w, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user