diff --git a/src/modules/network_element/controller/ne_host.go b/src/modules/network_element/controller/ne_host.go index d24ee3ae..b1700a11 100644 --- a/src/modules/network_element/controller/ne_host.go +++ b/src/modules/network_element/controller/ne_host.go @@ -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 { // 连接主机失败,请检查连接参数后重试