fix(devtool): creates a forward using the specified address

This commit is contained in:
rainzm
2021-10-11 10:56:16 +08:00
parent c6ced971a5
commit 75191c8854
+1
View File
@@ -104,6 +104,7 @@ func checkSshableForYunionCloud(session *mcclient.ClientSession, serverDetail *c
lfParams := jsonutils.NewDict()
lfParams.Set("proto", jsonutils.NewString("tcp"))
lfParams.Set("port", jsonutils.NewInt(22))
lfParams.Set("addr", jsonutils.NewString(ip))
data, err := modules.Servers.PerformAction(session, serverDetail.Id, "list-forward", lfParams)
if err != nil {
err = errors.Wrapf(err, "unable to List Forward for server %s", serverDetail.Id)