fix: 测试主机UPF连接telnet响应符号
This commit is contained in:
1 parent
035eecb233
commit
95de441828
1 file changed
+1
-1
@@ -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