mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
@@ -29,7 +29,7 @@ type WebConsoleOptions struct {
|
||||
IpmitoolPath string `help:"ipmitool binary path used to connect baremetal sol" default:"/usr/bin/ipmitool"`
|
||||
EnableAutoLogin bool `help:"allow webconsole to log in directly with the cloudroot public key" default:"false"`
|
||||
ApsaraConsoleAddr string `help:"Apsara console addr" default:"https://xxxx.com.cn/module/ecs/vnc/index.html"`
|
||||
AliyunVncVersion string `help:"Aliyun vnc version" default:"0.0.8"`
|
||||
AliyunConsoleAddr string `help:"Aliyun vnc addr" default:"https://ecs.console.aliyun.com/vnc/index.htm"`
|
||||
SshSessionTimeoutMinutes int `help:"ssh timeout session" default:"-1"`
|
||||
}
|
||||
|
||||
|
||||
@@ -161,14 +161,13 @@ func (info *RemoteConsoleInfo) getAliyunURL() (string, error) {
|
||||
if info.OsName == "Windows" {
|
||||
isWindows = "true"
|
||||
}
|
||||
base := fmt.Sprintf("https://g.alicdn.com/aliyun/ecs-console-vnc2/%s/index.html", options.Options.AliyunVncVersion)
|
||||
params := url.Values{
|
||||
"vncUrl": {info.Url},
|
||||
"instanceId": {info.InstanceId},
|
||||
"isWindows": {isWindows},
|
||||
"password": {info.Password},
|
||||
}
|
||||
return info.getConnParamsURL(base, params), nil
|
||||
return info.getConnParamsURL(options.Options.AliyunConsoleAddr, params), nil
|
||||
}
|
||||
|
||||
func (info *RemoteConsoleInfo) getCloudpodsURL() (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user