Skip to content

Commit

Permalink
fix windows closed error
Browse files Browse the repository at this point in the history
  • Loading branch information
L-codes committed Apr 9, 2021
1 parent 2b403df commit b78f3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mx1014.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b78f3fc

Please sign in to comment.