From 5d2f3c7f960fa82b2b601ddf2243cff930381399 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:14:33 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goecs.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/goecs.go b/goecs.go index 77662416..042deaf9 100644 --- a/goecs.go +++ b/goecs.go @@ -40,7 +40,7 @@ import ( ) var ( - ecsVersion = "v0.1.80" + ecsVersion = "v0.1.81" menuMode bool onlyChinaTest bool input, choice string @@ -817,15 +817,10 @@ func runNetworkTests(wg3, wg4 *sync.WaitGroup, ptInfo, backtraceInfo *string, ou fmt.Print(*backtraceInfo) } if nt3Status && !onlyChinaTest { - var nt3Info string - if nt3Status && !onlyChinaTest { - utils.PrintCenteredTitle("三网回程路由检测", width) - nexttrace.NextTrace3Check(language, nt3Location, nt3CheckType) // 不可 - nt3Info = utils.PrintAndCapture(func() { - fmt.Print(nt3Info) - }, "", "") - fmt.Print(nt3Info) - } + utils.PrintCenteredTitle("三网回程路由检测", width) + utils.PrintAndCapture(func() { + nexttrace.NextTrace3Check(language, nt3Location, nt3CheckType) // 不能在重定向的同时外部并发,此处仅可以顺序执行 + }, "", "") } if (onlyChinaTest || pingTestStatus) && *ptInfo != "" { wg3.Wait()