mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
ctyun operations
This commit is contained in:
@@ -203,7 +203,7 @@ func handleServerRemoteConsole(ctx context.Context, w http.ResponseWriter, r *ht
|
||||
return
|
||||
}
|
||||
switch info.Protocol {
|
||||
case session.ALIYUN, session.QCLOUD, session.OPENSTACK, session.VMRC, session.ZSTACK:
|
||||
case session.ALIYUN, session.QCLOUD, session.OPENSTACK, session.VMRC, session.ZSTACK, session.CTYUN:
|
||||
responsePublicCloudConsole(info, w)
|
||||
case session.VNC, session.SPICE, session.WMKS:
|
||||
handleDataSession(info, w, url.Values{"password": {info.GetPassword()}})
|
||||
|
||||
@@ -32,6 +32,7 @@ const (
|
||||
WMKS = "wmks"
|
||||
VMRC = "vmrc"
|
||||
ZSTACK = "zstack"
|
||||
CTYUN = "ctyun"
|
||||
)
|
||||
|
||||
type RemoteConsoleInfo struct {
|
||||
@@ -109,7 +110,7 @@ func (info *RemoteConsoleInfo) GetConnectParams() (string, error) {
|
||||
return info.getAliyunURL()
|
||||
case QCLOUD:
|
||||
return info.getQcloudURL()
|
||||
case OPENSTACK, VMRC, ZSTACK:
|
||||
case OPENSTACK, VMRC, ZSTACK, CTYUN:
|
||||
return info.Url, nil
|
||||
default:
|
||||
return "", fmt.Errorf("Can't convert protocol %s to connect params", info.Protocol)
|
||||
|
||||
Reference in New Issue
Block a user