2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

fix(安全): SSH端口类型

This commit is contained in:
耗子
2024-05-26 14:19:56 +08:00
parent de7d50ce51
commit 9eb9a2c7d6

View File

@@ -302,7 +302,7 @@ func (r *SafeController) GetSshPort(ctx http.Context) http.Response {
return Error(ctx, http.StatusInternalServerError, out)
}
return Success(ctx, out)
return Success(ctx, cast.ToInt(out))
}
// SetSshPort 设置 SSH 端口