style: 补充代码注释

This commit is contained in:
TsMask
2024-06-14 17:01:19 +08:00
parent 4b1acc3e25
commit 1f68c15e93
3 changed files with 4 additions and 3 deletions

View File

@@ -259,12 +259,12 @@ func (s *WSController) Telnet(c *gin.Context) {
// 终端单行字符数
cols, err := strconv.Atoi(c.Query("cols"))
if err != nil || cols > 254 {
cols = 80
cols = 120
}
// 终端显示行数
rows, err := strconv.Atoi(c.Query("rows"))
if err != nil || cols > rows {
rows = 40
rows = 128
}
// 创建Telnet客户端会话