fix: 测试主机UPF连接telnet响应符号
This commit is contained in:
@@ -203,7 +203,7 @@ func (s *NeHostController) Test(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
defer client.Close()
|
||||
if strings.HasSuffix(client.LastResult, "> ") {
|
||||
if strings.HasSuffix(client.LastResult, "> ") || strings.HasSuffix(client.LastResult, "# ") {
|
||||
c.JSON(200, result.Ok(nil))
|
||||
} else {
|
||||
// 连接主机失败,请检查连接参数后重试
|
||||
|
||||
Reference in New Issue
Block a user