From b78f3fc4ddc7e1e56f90400e2982904b2586ce75 Mon Sep 17 00:00:00 2001 From: L Date: Fri, 9 Apr 2021 15:26:16 +0800 Subject: [PATCH] fix windows closed error --- mx1014.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mx1014.go b/mx1014.go index f5fc2ad..ffdbd38 100644 --- a/mx1014.go +++ b/mx1014.go @@ -240,7 +240,7 @@ func TcpConnect(targetAddr string) int { conn, err := net.DialTimeout("tcp", targetAddr, time.Millisecond*time.Duration(timeout)) if err != nil { errMsg := err.Error() - if strings.Contains(errMsg, "connection refused") { + if strings.Contains(errMsg, "refused") { return 1 } else if strings.Contains(errMsg, "timeout") { return 2