mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): support cnware (#23388)
This commit is contained in:
@@ -322,7 +322,7 @@ func handleServerRemoteConsole(ctx context.Context, w http.ResponseWriter, r *ht
|
||||
session.VMRC, session.ZSTACK, session.CTYUN,
|
||||
session.HUAWEI, session.HCS, session.APSARA,
|
||||
session.JDCLOUD, session.CLOUDPODS, session.PROXMOX,
|
||||
session.VOLCENGINE, session.BAIDU:
|
||||
session.VOLCENGINE, session.BAIDU, session.CNWARE:
|
||||
responsePublicCloudConsole(ctx, info, w)
|
||||
case session.VNC:
|
||||
handleDataSession(ctx, info, w, "no-vnc", url.Values{"password": {info.GetPassword()}}, true)
|
||||
|
||||
@@ -52,6 +52,7 @@ const (
|
||||
VOLCENGINE = api.VOLC_ENGINE
|
||||
BAIDU = api.BAIDU
|
||||
SANGFOR = api.SANGFOR
|
||||
CNWARE = api.CNWARE
|
||||
)
|
||||
|
||||
type RemoteConsoleInfo struct {
|
||||
@@ -130,7 +131,7 @@ func (info *RemoteConsoleInfo) GetConnectParams() (string, error) {
|
||||
return info.getQcloudURL()
|
||||
case CLOUDPODS:
|
||||
return info.getCloudpodsURL()
|
||||
case OPENSTACK, VMRC, ZSTACK, CTYUN, HUAWEI, HCS, JDCLOUD, PROXMOX, SANGFOR, BAIDU:
|
||||
case OPENSTACK, VMRC, ZSTACK, CTYUN, HUAWEI, HCS, JDCLOUD, PROXMOX, SANGFOR, BAIDU, CNWARE:
|
||||
return info.Url, nil
|
||||
case VOLCENGINE:
|
||||
return info.getVolcEngineURL()
|
||||
|
||||
Reference in New Issue
Block a user