From 95de441828572dd07d916f6df8778525076d6380 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 9 May 2024 15:37:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E4=B8=BB=E6=9C=BAUPF?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5telnet=E5=93=8D=E5=BA=94=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_element/controller/ne_host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { // 连接主机失败,请检查连接参数后重试