2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

fix(SSH): 规范端口类型

This commit is contained in:
耗子
2023-10-23 03:26:54 +08:00
parent eb0df71ef5
commit 441327b80f

View File

@@ -10,6 +10,7 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/facades"
"github.com/gorilla/websocket"
"github.com/spf13/cast"
"panel/app/models"
"panel/app/services"
@@ -40,7 +41,7 @@ func (r *SshController) GetInfo(ctx http.Context) http.Response {
return Success(ctx, http.Json{
"host": host,
"port": port,
"port": cast.ToInt(port),
"user": user,
"password": password,
})